@salesforce/plugin-devops-center 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -32
- package/lib/commands/devops/pipeline/create.d.ts +1 -0
- package/lib/commands/devops/pipeline/create.js +14 -3
- package/lib/commands/devops/pipeline/create.js.map +1 -1
- package/lib/commands/devops/promotion/validate.js +16 -3
- package/lib/commands/devops/promotion/validate.js.map +1 -1
- package/lib/commands/devops/stage/environment/add.js +36 -4
- package/lib/commands/devops/stage/environment/add.js.map +1 -1
- package/lib/utils/createPipeline.d.ts +1 -0
- package/lib/utils/createPipeline.js +4 -1
- package/lib/utils/createPipeline.js.map +1 -1
- package/messages/devops.pipeline.create.md +8 -0
- package/messages/devops.stage.environment.add.md +4 -0
- package/npm-shrinkwrap.json +2 -2
- package/oclif.manifest.json +10 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -96,7 +96,7 @@ Create a DevOps Center pipeline.
|
|
|
96
96
|
USAGE
|
|
97
97
|
$ sf devops pipeline create -o <value> -n <value> -r <value> [--json] [--flags-dir <value>] [--api-version <value>]
|
|
98
98
|
[--repo-type github|bitbucket] [--create-repo] [--repo-owner <value>] [--bitbucket-workspace <value>]
|
|
99
|
-
[--bitbucket-project-key <value>] [-s <value>...]
|
|
99
|
+
[--bitbucket-project-key <value>] [-s <value>...] [--project-id <value>...]
|
|
100
100
|
|
|
101
101
|
FLAGS
|
|
102
102
|
-n, --name=<value> (required) Name of the pipeline.
|
|
@@ -111,6 +111,8 @@ FLAGS
|
|
|
111
111
|
--bitbucket-workspace=<value> Bitbucket workspace that will own the repository. Required when creating a
|
|
112
112
|
Bitbucket repository using '--create-repo'.
|
|
113
113
|
--create-repo Create a repository if it doesn't exist.
|
|
114
|
+
--project-id=<value>... ID of a project to associate with the pipeline. Repeat the flag to associate
|
|
115
|
+
multiple projects.
|
|
114
116
|
--repo-owner=<value> Owner (organization or user) of the GitHub repository. Required when creating a
|
|
115
117
|
GitHub repository using '--create-repo'.
|
|
116
118
|
--repo-type=<option> Type of the source code repository. Required when creating a repository using
|
|
@@ -152,9 +154,14 @@ EXAMPLES
|
|
|
152
154
|
|
|
153
155
|
$ sf devops pipeline create --target-org my-devops-org --name "Release Pipeline" --repo \
|
|
154
156
|
https://github.com/myorg/myrepo --stage Dev --stage QA --stage Prod
|
|
157
|
+
|
|
158
|
+
Create a pipeline and associate one or more projects with it:
|
|
159
|
+
|
|
160
|
+
$ sf devops pipeline create --target-org my-devops-org --name "Release Pipeline" --repo \
|
|
161
|
+
https://github.com/myorg/myrepo --project-id 0Hn000000000001 --project-id 0Hn000000000002
|
|
155
162
|
```
|
|
156
163
|
|
|
157
|
-
_See code: [src/commands/devops/pipeline/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
164
|
+
_See code: [src/commands/devops/pipeline/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/pipeline/create.ts)_
|
|
158
165
|
|
|
159
166
|
## `sf devops pipeline get`
|
|
160
167
|
|
|
@@ -186,7 +193,7 @@ EXAMPLES
|
|
|
186
193
|
$ sf devops pipeline get --target-org my-devops-org --pipeline-id 0Do000000000001
|
|
187
194
|
```
|
|
188
195
|
|
|
189
|
-
_See code: [src/commands/devops/pipeline/get.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
196
|
+
_See code: [src/commands/devops/pipeline/get.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/pipeline/get.ts)_
|
|
190
197
|
|
|
191
198
|
## `sf devops pipeline list`
|
|
192
199
|
|
|
@@ -217,7 +224,7 @@ EXAMPLES
|
|
|
217
224
|
$ sf devops pipeline list --target-org my-devops-org
|
|
218
225
|
```
|
|
219
226
|
|
|
220
|
-
_See code: [src/commands/devops/pipeline/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
227
|
+
_See code: [src/commands/devops/pipeline/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/pipeline/list.ts)_
|
|
221
228
|
|
|
222
229
|
## `sf devops pipeline project add`
|
|
223
230
|
|
|
@@ -251,7 +258,7 @@ EXAMPLES
|
|
|
251
258
|
0Hn000000000001
|
|
252
259
|
```
|
|
253
260
|
|
|
254
|
-
_See code: [src/commands/devops/pipeline/project/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
261
|
+
_See code: [src/commands/devops/pipeline/project/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/pipeline/project/add.ts)_
|
|
255
262
|
|
|
256
263
|
## `sf devops pipeline project delete`
|
|
257
264
|
|
|
@@ -285,7 +292,7 @@ EXAMPLES
|
|
|
285
292
|
0Hn000000000001
|
|
286
293
|
```
|
|
287
294
|
|
|
288
|
-
_See code: [src/commands/devops/pipeline/project/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
295
|
+
_See code: [src/commands/devops/pipeline/project/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/pipeline/project/delete.ts)_
|
|
289
296
|
|
|
290
297
|
## `sf devops pipeline stage add`
|
|
291
298
|
|
|
@@ -326,7 +333,7 @@ EXAMPLES
|
|
|
326
333
|
--next-stage-id 0Xc000000000003
|
|
327
334
|
```
|
|
328
335
|
|
|
329
|
-
_See code: [src/commands/devops/pipeline/stage/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
336
|
+
_See code: [src/commands/devops/pipeline/stage/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/pipeline/stage/add.ts)_
|
|
330
337
|
|
|
331
338
|
## `sf devops pipeline stage delete`
|
|
332
339
|
|
|
@@ -361,7 +368,7 @@ EXAMPLES
|
|
|
361
368
|
0Xc000000000002
|
|
362
369
|
```
|
|
363
370
|
|
|
364
|
-
_See code: [src/commands/devops/pipeline/stage/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
371
|
+
_See code: [src/commands/devops/pipeline/stage/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/pipeline/stage/delete.ts)_
|
|
365
372
|
|
|
366
373
|
## `sf devops pipeline stage update`
|
|
367
374
|
|
|
@@ -394,7 +401,7 @@ EXAMPLES
|
|
|
394
401
|
$ sf devops pipeline stage update --target-org my-devops-org --stage-id 1QV000000000001 --name "Integration"
|
|
395
402
|
```
|
|
396
403
|
|
|
397
|
-
_See code: [src/commands/devops/pipeline/stage/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
404
|
+
_See code: [src/commands/devops/pipeline/stage/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/pipeline/stage/update.ts)_
|
|
398
405
|
|
|
399
406
|
## `sf devops pipeline update`
|
|
400
407
|
|
|
@@ -438,7 +445,7 @@ EXAMPLES
|
|
|
438
445
|
Pipeline"
|
|
439
446
|
```
|
|
440
447
|
|
|
441
|
-
_See code: [src/commands/devops/pipeline/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
448
|
+
_See code: [src/commands/devops/pipeline/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/pipeline/update.ts)_
|
|
442
449
|
|
|
443
450
|
## `sf devops project create`
|
|
444
451
|
|
|
@@ -475,7 +482,7 @@ EXAMPLES
|
|
|
475
482
|
update"
|
|
476
483
|
```
|
|
477
484
|
|
|
478
|
-
_See code: [src/commands/devops/project/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
485
|
+
_See code: [src/commands/devops/project/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/project/create.ts)_
|
|
479
486
|
|
|
480
487
|
## `sf devops project list`
|
|
481
488
|
|
|
@@ -510,7 +517,7 @@ EXAMPLES
|
|
|
510
517
|
$ sf devops project list --target-org devops-center@example.com
|
|
511
518
|
```
|
|
512
519
|
|
|
513
|
-
_See code: [src/commands/devops/project/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
520
|
+
_See code: [src/commands/devops/project/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/project/list.ts)_
|
|
514
521
|
|
|
515
522
|
## `sf devops project update`
|
|
516
523
|
|
|
@@ -560,7 +567,7 @@ EXAMPLES
|
|
|
560
567
|
--description "Archived" --no-is-active
|
|
561
568
|
```
|
|
562
569
|
|
|
563
|
-
_See code: [src/commands/devops/project/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
570
|
+
_See code: [src/commands/devops/project/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/project/update.ts)_
|
|
564
571
|
|
|
565
572
|
## `sf devops promote`
|
|
566
573
|
|
|
@@ -660,7 +667,7 @@ FLAG DESCRIPTIONS
|
|
|
660
667
|
spaces.
|
|
661
668
|
```
|
|
662
669
|
|
|
663
|
-
_See code: [src/commands/devops/promote.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
670
|
+
_See code: [src/commands/devops/promote.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/promote.ts)_
|
|
664
671
|
|
|
665
672
|
## `sf devops promotion complete`
|
|
666
673
|
|
|
@@ -743,7 +750,7 @@ FLAG DESCRIPTIONS
|
|
|
743
750
|
spaces.
|
|
744
751
|
```
|
|
745
752
|
|
|
746
|
-
_See code: [src/commands/devops/promotion/complete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
753
|
+
_See code: [src/commands/devops/promotion/complete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/promotion/complete.ts)_
|
|
747
754
|
|
|
748
755
|
## `sf devops promotion validate`
|
|
749
756
|
|
|
@@ -784,7 +791,7 @@ EXAMPLES
|
|
|
784
791
|
1fk000000000001 --work-item-id 1fk000000000002
|
|
785
792
|
```
|
|
786
793
|
|
|
787
|
-
_See code: [src/commands/devops/promotion/validate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
794
|
+
_See code: [src/commands/devops/promotion/validate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/promotion/validate.ts)_
|
|
788
795
|
|
|
789
796
|
## `sf devops request status`
|
|
790
797
|
|
|
@@ -815,7 +822,7 @@ EXAMPLES
|
|
|
815
822
|
$ sf devops request status --target-org my-devops-org --request-token a0B000000000001
|
|
816
823
|
```
|
|
817
824
|
|
|
818
|
-
_See code: [src/commands/devops/request/status.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
825
|
+
_See code: [src/commands/devops/request/status.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/request/status.ts)_
|
|
819
826
|
|
|
820
827
|
## `sf devops review create`
|
|
821
828
|
|
|
@@ -852,7 +859,7 @@ EXAMPLES
|
|
|
852
859
|
$ sf devops review create --target-org my-devops-org --work-item-id 0Wx000000000001
|
|
853
860
|
```
|
|
854
861
|
|
|
855
|
-
_See code: [src/commands/devops/review/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
862
|
+
_See code: [src/commands/devops/review/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/review/create.ts)_
|
|
856
863
|
|
|
857
864
|
## `sf devops stage branch add`
|
|
858
865
|
|
|
@@ -895,7 +902,7 @@ EXAMPLES
|
|
|
895
902
|
--branch-name integration --create-vcs-branch
|
|
896
903
|
```
|
|
897
904
|
|
|
898
|
-
_See code: [src/commands/devops/stage/branch/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
905
|
+
_See code: [src/commands/devops/stage/branch/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/stage/branch/add.ts)_
|
|
899
906
|
|
|
900
907
|
## `sf devops stage branch delete`
|
|
901
908
|
|
|
@@ -933,7 +940,7 @@ EXAMPLES
|
|
|
933
940
|
0Xp000000000001
|
|
934
941
|
```
|
|
935
942
|
|
|
936
|
-
_See code: [src/commands/devops/stage/branch/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
943
|
+
_See code: [src/commands/devops/stage/branch/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/stage/branch/delete.ts)_
|
|
937
944
|
|
|
938
945
|
## `sf devops stage environment add`
|
|
939
946
|
|
|
@@ -973,7 +980,7 @@ EXAMPLES
|
|
|
973
980
|
Production_Org --org-type Production
|
|
974
981
|
```
|
|
975
982
|
|
|
976
|
-
_See code: [src/commands/devops/stage/environment/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
983
|
+
_See code: [src/commands/devops/stage/environment/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/stage/environment/add.ts)_
|
|
977
984
|
|
|
978
985
|
## `sf devops stage environment delete`
|
|
979
986
|
|
|
@@ -1007,7 +1014,7 @@ EXAMPLES
|
|
|
1007
1014
|
0Xe000000000001
|
|
1008
1015
|
```
|
|
1009
1016
|
|
|
1010
|
-
_See code: [src/commands/devops/stage/environment/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1017
|
+
_See code: [src/commands/devops/stage/environment/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/stage/environment/delete.ts)_
|
|
1011
1018
|
|
|
1012
1019
|
## `sf devops work-item combine`
|
|
1013
1020
|
|
|
@@ -1056,7 +1063,7 @@ FLAG DESCRIPTIONS
|
|
|
1056
1063
|
are merged into the parent's branch during promotion.
|
|
1057
1064
|
```
|
|
1058
1065
|
|
|
1059
|
-
_See code: [src/commands/devops/work-item/combine.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1066
|
+
_See code: [src/commands/devops/work-item/combine.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/work-item/combine.ts)_
|
|
1060
1067
|
|
|
1061
1068
|
## `sf devops work-item create`
|
|
1062
1069
|
|
|
@@ -1097,7 +1104,7 @@ EXAMPLES
|
|
|
1097
1104
|
--description "Implement dark mode toggle in settings page"
|
|
1098
1105
|
```
|
|
1099
1106
|
|
|
1100
|
-
_See code: [src/commands/devops/work-item/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1107
|
+
_See code: [src/commands/devops/work-item/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/work-item/create.ts)_
|
|
1101
1108
|
|
|
1102
1109
|
## `sf devops work-item list`
|
|
1103
1110
|
|
|
@@ -1133,7 +1140,7 @@ EXAMPLES
|
|
|
1133
1140
|
$ sf devops work-item list --target-org my-devops-org --project-id 1Qg000000000001 --json
|
|
1134
1141
|
```
|
|
1135
1142
|
|
|
1136
|
-
_See code: [src/commands/devops/work-item/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1143
|
+
_See code: [src/commands/devops/work-item/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/work-item/list.ts)_
|
|
1137
1144
|
|
|
1138
1145
|
## `sf devops work-item prepare`
|
|
1139
1146
|
|
|
@@ -1174,7 +1181,7 @@ EXAMPLES
|
|
|
1174
1181
|
--target-stage-id 05S000000000002
|
|
1175
1182
|
```
|
|
1176
1183
|
|
|
1177
|
-
_See code: [src/commands/devops/work-item/prepare.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1184
|
+
_See code: [src/commands/devops/work-item/prepare.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/work-item/prepare.ts)_
|
|
1178
1185
|
|
|
1179
1186
|
## `sf devops work-item update`
|
|
1180
1187
|
|
|
@@ -1221,7 +1228,7 @@ EXAMPLES
|
|
|
1221
1228
|
--description "Users can't log in on mobile" --status "In Progress"
|
|
1222
1229
|
```
|
|
1223
1230
|
|
|
1224
|
-
_See code: [src/commands/devops/work-item/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1231
|
+
_See code: [src/commands/devops/work-item/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/devops/work-item/update.ts)_
|
|
1225
1232
|
|
|
1226
1233
|
## `sf project deploy pipeline quick`
|
|
1227
1234
|
|
|
@@ -1295,7 +1302,7 @@ FLAG DESCRIPTIONS
|
|
|
1295
1302
|
"sf project deploy pipeline report".
|
|
1296
1303
|
```
|
|
1297
1304
|
|
|
1298
|
-
_See code: [src/commands/project/deploy/pipeline/quick.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1305
|
+
_See code: [src/commands/project/deploy/pipeline/quick.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/project/deploy/pipeline/quick.ts)_
|
|
1299
1306
|
|
|
1300
1307
|
## `sf project deploy pipeline report`
|
|
1301
1308
|
|
|
@@ -1343,7 +1350,7 @@ FLAG DESCRIPTIONS
|
|
|
1343
1350
|
your most recent operation was longer than 3 days ago, this flag won't find the job ID.
|
|
1344
1351
|
```
|
|
1345
1352
|
|
|
1346
|
-
_See code: [src/commands/project/deploy/pipeline/report.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1353
|
+
_See code: [src/commands/project/deploy/pipeline/report.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/project/deploy/pipeline/report.ts)_
|
|
1347
1354
|
|
|
1348
1355
|
## `sf project deploy pipeline resume`
|
|
1349
1356
|
|
|
@@ -1410,7 +1417,7 @@ FLAG DESCRIPTIONS
|
|
|
1410
1417
|
returns the job ID. To check the status of the operation, run "sf project deploy pipeline report".
|
|
1411
1418
|
```
|
|
1412
1419
|
|
|
1413
|
-
_See code: [src/commands/project/deploy/pipeline/resume.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1420
|
+
_See code: [src/commands/project/deploy/pipeline/resume.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/project/deploy/pipeline/resume.ts)_
|
|
1414
1421
|
|
|
1415
1422
|
## `sf project deploy pipeline start`
|
|
1416
1423
|
|
|
@@ -1510,7 +1517,7 @@ FLAG DESCRIPTIONS
|
|
|
1510
1517
|
"sf project deploy pipeline report".
|
|
1511
1518
|
```
|
|
1512
1519
|
|
|
1513
|
-
_See code: [src/commands/project/deploy/pipeline/start.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1520
|
+
_See code: [src/commands/project/deploy/pipeline/start.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/project/deploy/pipeline/start.ts)_
|
|
1514
1521
|
|
|
1515
1522
|
## `sf project deploy pipeline validate`
|
|
1516
1523
|
|
|
@@ -1610,7 +1617,7 @@ FLAG DESCRIPTIONS
|
|
|
1610
1617
|
"sf project deploy pipeline report".
|
|
1611
1618
|
```
|
|
1612
1619
|
|
|
1613
|
-
_See code: [src/commands/project/deploy/pipeline/validate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1620
|
+
_See code: [src/commands/project/deploy/pipeline/validate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.2.0/src/commands/project/deploy/pipeline/validate.ts)_
|
|
1614
1621
|
|
|
1615
1622
|
<!-- commandsstop -->
|
|
1616
1623
|
|
|
@@ -16,6 +16,7 @@ export default class DevopsPipelineCreate extends SfCommand<CreatePipelineResult
|
|
|
16
16
|
'bitbucket-workspace': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
17
|
'bitbucket-project-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
18
|
stage: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
+
'project-id': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
20
|
};
|
|
20
21
|
run(): Promise<CreatePipelineResult>;
|
|
21
22
|
private resolveRepoType;
|
|
@@ -59,6 +59,11 @@ export default class DevopsPipelineCreate extends SfCommand {
|
|
|
59
59
|
char: 's',
|
|
60
60
|
multiple: true,
|
|
61
61
|
}),
|
|
62
|
+
'project-id': Flags.salesforceId({
|
|
63
|
+
summary: messages.getMessage('flags.project-id.summary'),
|
|
64
|
+
multiple: true,
|
|
65
|
+
char: undefined,
|
|
66
|
+
}),
|
|
62
67
|
};
|
|
63
68
|
async run() {
|
|
64
69
|
const { flags } = await this.parse(DevopsPipelineCreate);
|
|
@@ -99,6 +104,7 @@ export default class DevopsPipelineCreate extends SfCommand {
|
|
|
99
104
|
bitbucketWorkspace: flags['bitbucket-workspace'],
|
|
100
105
|
bitbucketProjectKey: flags['bitbucket-project-key'],
|
|
101
106
|
stages: flags['stage'],
|
|
107
|
+
projectIds: flags['project-id'],
|
|
102
108
|
});
|
|
103
109
|
}
|
|
104
110
|
catch (error) {
|
|
@@ -110,7 +116,7 @@ export default class DevopsPipelineCreate extends SfCommand {
|
|
|
110
116
|
throw error;
|
|
111
117
|
}
|
|
112
118
|
if (result.success) {
|
|
113
|
-
this.printSuccessOutput(result, flags['repo'], org.getUsername());
|
|
119
|
+
this.printSuccessOutput(result, flags['repo'], org.getUsername(), flags['project-id']);
|
|
114
120
|
}
|
|
115
121
|
else {
|
|
116
122
|
this.error(`Failed to create pipeline: ${result.error ?? ''}`);
|
|
@@ -149,7 +155,7 @@ export default class DevopsPipelineCreate extends SfCommand {
|
|
|
149
155
|
this.error(messages.getMessage('error.VcsCredentialsMissing', [repo]));
|
|
150
156
|
}
|
|
151
157
|
}
|
|
152
|
-
printSuccessOutput(result, repoFlag, username) {
|
|
158
|
+
printSuccessOutput(result, repoFlag, username, projectIds) {
|
|
153
159
|
if (result.repository?.created) {
|
|
154
160
|
this.log(`Created repository: ${repoFlag} (${result.repository.repoType})`);
|
|
155
161
|
}
|
|
@@ -157,11 +163,16 @@ export default class DevopsPipelineCreate extends SfCommand {
|
|
|
157
163
|
this.log(` Pipeline ID: ${result.pipelineId ?? ''}`);
|
|
158
164
|
this.log(` Repository: ${result.repository?.repoUrl ?? ''} (${result.repository?.repoType ?? ''})`);
|
|
159
165
|
this.log(` Status: ${result.status ?? 'Inactive'}`);
|
|
166
|
+
if (projectIds && projectIds.length > 0) {
|
|
167
|
+
this.log(` Projects: ${projectIds.join(', ')}`);
|
|
168
|
+
}
|
|
160
169
|
this.log(' Next steps:');
|
|
161
170
|
const orgLabel = username ?? '<org>';
|
|
162
171
|
const pipelineIdLabel = result.pipelineId ?? '<ID>';
|
|
163
172
|
this.log(` Add pipeline stages: sf devops pipeline stage add --target-org ${orgLabel} --pipeline-id ${pipelineIdLabel}`);
|
|
164
|
-
|
|
173
|
+
if (!projectIds || projectIds.length === 0) {
|
|
174
|
+
this.log(` Attach a project: sf devops pipeline project add --target-org ${orgLabel} --pipeline-id ${pipelineIdLabel} --project-id <ID>`);
|
|
175
|
+
}
|
|
165
176
|
}
|
|
166
177
|
}
|
|
167
178
|
//# sourceMappingURL=create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/devops/pipeline/create.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAO,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EACL,cAAc,EAEd,cAAc,EACd,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,kC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C"}
|
|
@@ -16,12 +16,24 @@
|
|
|
16
16
|
import { Messages } from '@salesforce/core';
|
|
17
17
|
import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
|
|
18
18
|
import { validatePromotion, formatValidationDetails, hasSharedComponents, } from '../../../utils/promotionUtils.js';
|
|
19
|
-
import { validateSalesforceId } from '../../../utils/soqlUtils.js';
|
|
19
|
+
import { validateSalesforceId, normalizeSalesforceId } from '../../../utils/soqlUtils.js';
|
|
20
20
|
import { resolveProjectIdFromWorkItem } from '../../../utils/prepareWorkItem.js';
|
|
21
|
-
import { getPipelineIdForProject } from '../../../utils/pipelineUtils.js';
|
|
21
|
+
import { getPipelineIdForProject, fetchPipelineStages, computeFirstStageId } from '../../../utils/pipelineUtils.js';
|
|
22
22
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
23
23
|
const messages = Messages.loadMessages('@salesforce/plugin-devops-center', 'devops.promotion.validate');
|
|
24
24
|
const commonErrorMessages = Messages.loadMessages('@salesforce/plugin-devops-center', 'commonErrors');
|
|
25
|
+
/**
|
|
26
|
+
* Combine details describe how work items that share components could be merged before promotion.
|
|
27
|
+
* We request them regardless of work-item count, except when promoting to the pipeline's first
|
|
28
|
+
* stage: those work items come straight from dev branches and have no source stage, so Core's
|
|
29
|
+
* combine-details path NPEs on a null source stage.
|
|
30
|
+
*/
|
|
31
|
+
async function shouldCheckCombineDetails(connection, pipelineId, targetStageId) {
|
|
32
|
+
const stages = await fetchPipelineStages(connection, pipelineId);
|
|
33
|
+
const firstStageId = computeFirstStageId(stages);
|
|
34
|
+
const promotingToFirstStage = Boolean(firstStageId) && normalizeSalesforceId(targetStageId) === normalizeSalesforceId(firstStageId);
|
|
35
|
+
return !promotingToFirstStage;
|
|
36
|
+
}
|
|
25
37
|
export default class DevopsPromotionValidate extends SfCommand {
|
|
26
38
|
static summary = messages.getMessage('summary');
|
|
27
39
|
static description = messages.getMessage('description');
|
|
@@ -68,9 +80,10 @@ export default class DevopsPromotionValidate extends SfCommand {
|
|
|
68
80
|
}
|
|
69
81
|
throw error;
|
|
70
82
|
}
|
|
83
|
+
const checkCombineDetails = await shouldCheckCombineDetails(connection, pipelineId, targetStageId);
|
|
71
84
|
let result;
|
|
72
85
|
try {
|
|
73
|
-
result = await validatePromotion(connection, pipelineId, workItemIds, targetStageId,
|
|
86
|
+
result = await validatePromotion(connection, pipelineId, workItemIds, targetStageId, checkCombineDetails);
|
|
74
87
|
}
|
|
75
88
|
catch (error) {
|
|
76
89
|
const errMsg = error instanceof Error ? error.message : String(error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../../src/commands/devops/promotion/validate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../../src/commands/devops/promotion/validate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAc,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EACL,iBAAiB,EAGjB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC1F,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEpH,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,2BAA2B,CAAC,CAAC;AACxG,MAAM,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CA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C,CACH,CAAC;YACJ,CAAC;YAED,wFAAwF;YACxF,MAAM,WAAW,GAAG;gBAClB,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,kBAAkB,EAAE,EAAE,CAAC;gBAClD,qBAAqB,aAAa,EAAE;aACrC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACZ,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC,CAAC;YAClE,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAC,qBAAqB,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC;YAEtG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACb,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;YACzB,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;QACjD,CAAC;QAED,OAAO;YACL,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,cAAc,EAAE,MAAM,CAAC,cAAc;YACrC,WAAW;SACZ,CAAC;IACJ,CAAC"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import { execFile } from 'node:child_process';
|
|
17
17
|
import { Messages } from '@salesforce/core';
|
|
18
18
|
import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
|
|
19
19
|
import { addStageEnvironment } from '../../../../utils/addStageEnvironment.js';
|
|
@@ -22,10 +22,42 @@ import { validateSalesforceId } from '../../../../utils/soqlUtils.js';
|
|
|
22
22
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
23
23
|
const messages = Messages.loadMessages('@salesforce/plugin-devops-center', 'devops.stage.environment.add');
|
|
24
24
|
const commonErrorMessages = Messages.loadMessages('@salesforce/plugin-devops-center', 'commonErrors');
|
|
25
|
+
/**
|
|
26
|
+
* Validates that a server-provided redirect URL is a well-formed http(s) URL, and
|
|
27
|
+
* returns its normalized form. Rejects anything else so a malicious endpoint can't
|
|
28
|
+
* smuggle shell metacharacters or non-web schemes (javascript:, file:, etc.) into
|
|
29
|
+
* the browser-open step. Throws on invalid input.
|
|
30
|
+
*/
|
|
31
|
+
function sanitizeRedirectUrl(url) {
|
|
32
|
+
let parsed;
|
|
33
|
+
try {
|
|
34
|
+
parsed = new URL(url);
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
throw new Error(messages.getMessage('error.InvalidRedirectUrl', [url]));
|
|
38
|
+
}
|
|
39
|
+
if (parsed.protocol !== 'https:' && parsed.protocol !== 'http:') {
|
|
40
|
+
throw new Error(messages.getMessage('error.InvalidRedirectUrl', [url]));
|
|
41
|
+
}
|
|
42
|
+
// Return the normalized href: quotes, spaces, and other unsafe characters are
|
|
43
|
+
// percent-encoded, so no shell metacharacters survive.
|
|
44
|
+
return parsed.href;
|
|
45
|
+
}
|
|
25
46
|
function openUrl(url) {
|
|
26
47
|
const platform = process.platform;
|
|
27
|
-
|
|
28
|
-
|
|
48
|
+
// Pass the URL as a separate argument (never interpolated into a shell string),
|
|
49
|
+
// so it can't be interpreted as a command even if it contained metacharacters.
|
|
50
|
+
// On Windows, `start` is a cmd builtin; its first quoted argument is the window
|
|
51
|
+
// title, so pass an empty title before the URL.
|
|
52
|
+
if (platform === 'darwin') {
|
|
53
|
+
execFile('open', [url]);
|
|
54
|
+
}
|
|
55
|
+
else if (platform === 'win32') {
|
|
56
|
+
execFile('cmd', ['/c', 'start', '', url]);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
execFile('xdg-open', [url]);
|
|
60
|
+
}
|
|
29
61
|
}
|
|
30
62
|
function decodeRedirectUrl(url) {
|
|
31
63
|
return url.replace(/&/g, '&');
|
|
@@ -100,7 +132,7 @@ export default class DevopsStageEnvironmentAdd extends SfCommand {
|
|
|
100
132
|
environmentName,
|
|
101
133
|
orgType,
|
|
102
134
|
onCreated: (data) => {
|
|
103
|
-
const url = decodeRedirectUrl(data.redirectUrl);
|
|
135
|
+
const url = sanitizeRedirectUrl(decodeRedirectUrl(data.redirectUrl));
|
|
104
136
|
if (!noBrowser) {
|
|
105
137
|
openUrl(url);
|
|
106
138
|
this.log(messages.getMessage('info.BrowserOpened'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add.js","sourceRoot":"","sources":["../../../../../src/commands/devops/stage/environment/add.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"add.js","sourceRoot":"","sources":["../../../../../src/commands/devops/stage/environment/add.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAO,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAsC,MAAM,0CAA0C,CAAC;AACnH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAEzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEtE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,8BAA8B,CAAC,CAAC;AAC3G,MAAM,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,cAAc,CAAC,CAAC;AAEtG;;;;;G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AAO,MAAM,CAAC;IAChB,CAAC"}
|
|
@@ -86,7 +86,7 @@ export class GitHubOwnerNotFoundError extends Error {
|
|
|
86
86
|
* POST /services/data/v{version}/connect/devops/pipelines
|
|
87
87
|
*/
|
|
88
88
|
export async function createPipeline(params) {
|
|
89
|
-
const { connection, name, repo, repoType, createRepo, repoOwner, bitbucketWorkspace, bitbucketProjectKey, stages } = params;
|
|
89
|
+
const { connection, name, repo, repoType, createRepo, repoOwner, bitbucketWorkspace, bitbucketProjectKey, stages, projectIds, } = params;
|
|
90
90
|
const path = `/services/data/v${connection.getApiVersion()}/connect/devops/pipelines`;
|
|
91
91
|
const stageNames = stages && stages.length > 0 ? stages : DEFAULT_STAGE_NAMES;
|
|
92
92
|
const payload = {
|
|
@@ -94,6 +94,9 @@ export async function createPipeline(params) {
|
|
|
94
94
|
vcsType: repoType,
|
|
95
95
|
stages: stageNames.map((stageName) => ({ name: stageName })),
|
|
96
96
|
};
|
|
97
|
+
if (projectIds && projectIds.length > 0) {
|
|
98
|
+
payload.projectIds = projectIds;
|
|
99
|
+
}
|
|
97
100
|
if (createRepo) {
|
|
98
101
|
payload.createVcsRepo = true;
|
|
99
102
|
payload.vcsRepoName = repo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPipeline.js","sourceRoot":"","sources":["../../src/utils/createPipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"createPipeline.js","sourceRoot":"","sources":["../../src/utils/createPipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAqC9C,MAAM,mBAAmB,GAAG,CAAC,aAAa,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC;AAE5E;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,OAA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AAE,cAAc,EAAE,kBAAkB,EAAE;KAChD,CAAC,CAAC;IAEH,OAAO;QACL,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,IAAI,CAAC,EAAE;QACnB,IAAI;QACJ,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,UAAU;QACjC,UAAU,EAAE;YACV,OAAO,EAAE,IAAI;YACb,QAAQ;YACR,OAAO,EAAE,UAAU,IAAI,KAAK;SAC7B;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -42,6 +42,10 @@ Bitbucket project key to associate with the repository. Optional when creating a
|
|
|
42
42
|
|
|
43
43
|
Name of a pipeline stage, in promotion order. Repeat the flag for each stage. Defaults to Integration, UAT, Staging, and Production.
|
|
44
44
|
|
|
45
|
+
# flags.project-id.summary
|
|
46
|
+
|
|
47
|
+
ID of a project to associate with the pipeline. Repeat the flag to associate multiple projects.
|
|
48
|
+
|
|
45
49
|
# examples
|
|
46
50
|
|
|
47
51
|
- Create a pipeline and associate it with an existing GitHub repository:
|
|
@@ -64,6 +68,10 @@ Name of a pipeline stage, in promotion order. Repeat the flag for each stage. De
|
|
|
64
68
|
|
|
65
69
|
<%= config.bin %> <%= command.id %> --target-org my-devops-org --name "Release Pipeline" --repo https://github.com/myorg/myrepo --stage Dev --stage QA --stage Prod
|
|
66
70
|
|
|
71
|
+
- Create a pipeline and associate one or more projects with it:
|
|
72
|
+
|
|
73
|
+
<%= config.bin %> <%= command.id %> --target-org my-devops-org --name "Release Pipeline" --repo https://github.com/myorg/myrepo --project-id 0Hn000000000001 --project-id 0Hn000000000002
|
|
74
|
+
|
|
67
75
|
# error.RepoTypeRequired
|
|
68
76
|
|
|
69
77
|
The --repo-type flag is required when using --create-repo. Specify --repo-type github or --repo-type bitbucket.
|
|
@@ -63,3 +63,7 @@ Failed to create environment for stage: %s
|
|
|
63
63
|
# error.AuthTimeout
|
|
64
64
|
|
|
65
65
|
Authentication timed out. The environment was created but not yet authenticated. Re-run the command or authenticate manually via the org's DevOps Center setup.
|
|
66
|
+
|
|
67
|
+
# error.InvalidRedirectUrl
|
|
68
|
+
|
|
69
|
+
The server returned an invalid authentication redirect URL: %s. Expected an http or https URL.
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-devops-center",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@salesforce/plugin-devops-center",
|
|
9
|
-
"version": "2.
|
|
9
|
+
"version": "2.2.0",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@jsforce/jsforce-node": "^3",
|
package/oclif.manifest.json
CHANGED
|
@@ -141,7 +141,8 @@
|
|
|
141
141
|
"Create a pipeline and associate it with a new GitHub repository:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --name \"Release Pipeline\" --repo my-new-repo --repo-type github --repo-owner myorg --create-repo",
|
|
142
142
|
"Create a pipeline and create a new Bitbucket repository:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --name \"Release Pipeline\" --repo my-new-repo --repo-type bitbucket --bitbucket-workspace myworkspace --bitbucket-project-key PROJ --create-repo",
|
|
143
143
|
"Create a pipeline and associate it with an existing Bitbucket repository:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --name \"Release Pipeline\" --repo https://bitbucket.org/myworkspace/myrepo",
|
|
144
|
-
"Create a pipeline with custom stage names instead of the default stages:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --name \"Release Pipeline\" --repo https://github.com/myorg/myrepo --stage Dev --stage QA --stage Prod"
|
|
144
|
+
"Create a pipeline with custom stage names instead of the default stages:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --name \"Release Pipeline\" --repo https://github.com/myorg/myrepo --stage Dev --stage QA --stage Prod",
|
|
145
|
+
"Create a pipeline and associate one or more projects with it:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --name \"Release Pipeline\" --repo https://github.com/myorg/myrepo --project-id 0Hn000000000001 --project-id 0Hn000000000002"
|
|
145
146
|
],
|
|
146
147
|
"flags": {
|
|
147
148
|
"json": {
|
|
@@ -239,6 +240,13 @@
|
|
|
239
240
|
"hasDynamicHelp": false,
|
|
240
241
|
"multiple": true,
|
|
241
242
|
"type": "option"
|
|
243
|
+
},
|
|
244
|
+
"project-id": {
|
|
245
|
+
"name": "project-id",
|
|
246
|
+
"summary": "ID of a project to associate with the pipeline. Repeat the flag to associate multiple projects.",
|
|
247
|
+
"hasDynamicHelp": false,
|
|
248
|
+
"multiple": true,
|
|
249
|
+
"type": "option"
|
|
242
250
|
}
|
|
243
251
|
},
|
|
244
252
|
"hasDynamicHelp": true,
|
|
@@ -2783,5 +2791,5 @@
|
|
|
2783
2791
|
]
|
|
2784
2792
|
}
|
|
2785
2793
|
},
|
|
2786
|
-
"version": "2.
|
|
2794
|
+
"version": "2.2.0"
|
|
2787
2795
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-devops-center",
|
|
3
3
|
"description": "The DevOps Center CLI plugin provides a command-line alternative to performing equivalent actions in the DevOps Center graphical UI",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Salesforce",
|
|
7
7
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
258
|
"sfdx": {
|
|
259
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/2.
|
|
260
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/2.
|
|
259
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/2.2.0.crt",
|
|
260
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/2.2.0.sig"
|
|
261
261
|
}
|
|
262
262
|
}
|