@salesforce/plugin-devops-center 2.0.0 → 2.1.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 +170 -44
- package/lib/commands/devops/pipeline/create.d.ts +1 -1
- package/lib/commands/devops/pipeline/create.js +5 -4
- package/lib/commands/devops/pipeline/create.js.map +1 -1
- package/lib/commands/devops/pipeline/stage/update.d.ts +19 -0
- package/lib/commands/devops/pipeline/stage/update.js +66 -0
- package/lib/commands/devops/pipeline/stage/update.js.map +1 -0
- package/lib/commands/devops/pipeline/update.d.ts +2 -1
- package/lib/commands/devops/pipeline/update.js +10 -4
- package/lib/commands/devops/pipeline/update.js.map +1 -1
- package/lib/commands/devops/promote.d.ts +5 -0
- package/lib/commands/devops/promote.js +49 -3
- package/lib/commands/devops/promote.js.map +1 -1
- package/lib/commands/devops/promotion/complete.d.ts +1 -1
- package/lib/commands/devops/promotion/complete.js +1 -1
- package/lib/commands/devops/promotion/complete.js.map +1 -1
- package/lib/commands/devops/promotion/validate.d.ts +21 -0
- package/lib/commands/devops/promotion/validate.js +137 -0
- package/lib/commands/devops/promotion/validate.js.map +1 -0
- package/lib/commands/devops/stage/branch/delete.d.ts +15 -0
- package/lib/commands/devops/stage/branch/delete.js +107 -0
- package/lib/commands/devops/stage/branch/delete.js.map +1 -0
- package/lib/commands/devops/work-item/prepare.js +0 -3
- package/lib/commands/devops/work-item/prepare.js.map +1 -1
- package/lib/utils/addPipelineStage.js +1 -0
- package/lib/utils/addPipelineStage.js.map +1 -1
- package/lib/utils/createPipeline.d.ts +1 -2
- package/lib/utils/createPipeline.js +28 -19
- package/lib/utils/createPipeline.js.map +1 -1
- package/lib/utils/deleteStageBranch.d.ts +22 -0
- package/lib/utils/deleteStageBranch.js +44 -0
- package/lib/utils/deleteStageBranch.js.map +1 -0
- package/lib/utils/pipelineUtils.d.ts +9 -0
- package/lib/utils/pipelineUtils.js +32 -0
- package/lib/utils/pipelineUtils.js.map +1 -1
- package/lib/utils/prepareWorkItem.d.ts +1 -1
- package/lib/utils/prepareWorkItem.js +4 -5
- package/lib/utils/prepareWorkItem.js.map +1 -1
- package/lib/utils/{deployStage.d.ts → promotionUtils.d.ts} +24 -0
- package/lib/utils/{deployStage.js → promotionUtils.js} +65 -1
- package/lib/utils/promotionUtils.js.map +1 -0
- package/lib/utils/soqlUtils.d.ts +5 -0
- package/lib/utils/soqlUtils.js +7 -0
- package/lib/utils/soqlUtils.js.map +1 -1
- package/messages/devops.pipeline.create.md +11 -7
- package/messages/devops.pipeline.stage.update.md +25 -0
- package/messages/devops.pipeline.update.md +10 -6
- package/messages/devops.promote.md +16 -0
- package/messages/devops.promotion.complete.md +3 -3
- package/messages/devops.promotion.validate.md +64 -0
- package/messages/devops.stage.branch.delete.md +37 -0
- package/npm-shrinkwrap.json +2 -2
- package/oclif.manifest.json +324 -72
- package/package.json +3 -3
- package/schemas/devops-pipeline-create.json +0 -3
- package/schemas/devops-pipeline-stage-update.json +22 -0
- package/schemas/devops-promote.json +38 -0
- package/schemas/devops-promotion-validate.json +66 -0
- package/schemas/devops-stage-branch-delete.json +47 -0
- package/lib/utils/deployStage.js.map +0 -1
package/README.md
CHANGED
|
@@ -63,15 +63,18 @@ sf plugins
|
|
|
63
63
|
- [`sf devops pipeline project delete`](#sf-devops-pipeline-project-delete)
|
|
64
64
|
- [`sf devops pipeline stage add`](#sf-devops-pipeline-stage-add)
|
|
65
65
|
- [`sf devops pipeline stage delete`](#sf-devops-pipeline-stage-delete)
|
|
66
|
+
- [`sf devops pipeline stage update`](#sf-devops-pipeline-stage-update)
|
|
66
67
|
- [`sf devops pipeline update`](#sf-devops-pipeline-update)
|
|
67
68
|
- [`sf devops project create`](#sf-devops-project-create)
|
|
68
69
|
- [`sf devops project list`](#sf-devops-project-list)
|
|
69
70
|
- [`sf devops project update`](#sf-devops-project-update)
|
|
70
71
|
- [`sf devops promote`](#sf-devops-promote)
|
|
71
72
|
- [`sf devops promotion complete`](#sf-devops-promotion-complete)
|
|
73
|
+
- [`sf devops promotion validate`](#sf-devops-promotion-validate)
|
|
72
74
|
- [`sf devops request status`](#sf-devops-request-status)
|
|
73
75
|
- [`sf devops review create`](#sf-devops-review-create)
|
|
74
76
|
- [`sf devops stage branch add`](#sf-devops-stage-branch-add)
|
|
77
|
+
- [`sf devops stage branch delete`](#sf-devops-stage-branch-delete)
|
|
75
78
|
- [`sf devops stage environment add`](#sf-devops-stage-environment-add)
|
|
76
79
|
- [`sf devops stage environment delete`](#sf-devops-stage-environment-delete)
|
|
77
80
|
- [`sf devops work-item combine`](#sf-devops-work-item-combine)
|
|
@@ -93,14 +96,15 @@ Create a DevOps Center pipeline.
|
|
|
93
96
|
USAGE
|
|
94
97
|
$ sf devops pipeline create -o <value> -n <value> -r <value> [--json] [--flags-dir <value>] [--api-version <value>]
|
|
95
98
|
[--repo-type github|bitbucket] [--create-repo] [--repo-owner <value>] [--bitbucket-workspace <value>]
|
|
96
|
-
[--bitbucket-project-key <value>] [-
|
|
99
|
+
[--bitbucket-project-key <value>] [-s <value>...]
|
|
97
100
|
|
|
98
101
|
FLAGS
|
|
99
|
-
-d, --description=<value> Description of the pipeline.
|
|
100
102
|
-n, --name=<value> (required) Name of the pipeline.
|
|
101
103
|
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
102
104
|
configuration variable is already set.
|
|
103
105
|
-r, --repo=<value> (required) URL of an existing repository or the name of a repository to create.
|
|
106
|
+
-s, --stage=<value>... Name of a pipeline stage, in promotion order. Repeat the flag for each stage.
|
|
107
|
+
Defaults to Integration, UAT, Staging, and Production.
|
|
104
108
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
105
109
|
--bitbucket-project-key=<value> Bitbucket project key to associate with the repository. Optional when creating a
|
|
106
110
|
Bitbucket repository using '--create-repo'.
|
|
@@ -124,28 +128,33 @@ DESCRIPTION
|
|
|
124
128
|
create the pipeline, add stages, and activate the pipeline.
|
|
125
129
|
|
|
126
130
|
EXAMPLES
|
|
127
|
-
Create a pipeline and associate it with an existing GitHub repository
|
|
131
|
+
Create a pipeline and associate it with an existing GitHub repository:
|
|
128
132
|
|
|
129
133
|
$ sf devops pipeline create --target-org my-devops-org --name "Release Pipeline" --repo \
|
|
130
134
|
https://github.com/myorg/myrepo
|
|
131
135
|
|
|
132
|
-
Create a pipeline and associate it with a new GitHub repository
|
|
136
|
+
Create a pipeline and associate it with a new GitHub repository:
|
|
133
137
|
|
|
134
138
|
$ sf devops pipeline create --target-org my-devops-org --name "Release Pipeline" --repo my-new-repo --repo-type \
|
|
135
139
|
github --repo-owner myorg --create-repo
|
|
136
140
|
|
|
137
|
-
Create a pipeline and create a new Bitbucket repository
|
|
141
|
+
Create a pipeline and create a new Bitbucket repository:
|
|
138
142
|
|
|
139
143
|
$ sf devops pipeline create --target-org my-devops-org --name "Release Pipeline" --repo my-new-repo --repo-type \
|
|
140
144
|
bitbucket --bitbucket-workspace myworkspace --bitbucket-project-key PROJ --create-repo
|
|
141
145
|
|
|
142
|
-
Create a pipeline
|
|
146
|
+
Create a pipeline and associate it with an existing Bitbucket repository:
|
|
143
147
|
|
|
144
148
|
$ sf devops pipeline create --target-org my-devops-org --name "Release Pipeline" --repo \
|
|
145
|
-
https://bitbucket.org/myworkspace/myrepo
|
|
149
|
+
https://bitbucket.org/myworkspace/myrepo
|
|
150
|
+
|
|
151
|
+
Create a pipeline with custom stage names instead of the default stages:
|
|
152
|
+
|
|
153
|
+
$ sf devops pipeline create --target-org my-devops-org --name "Release Pipeline" --repo \
|
|
154
|
+
https://github.com/myorg/myrepo --stage Dev --stage QA --stage Prod
|
|
146
155
|
```
|
|
147
156
|
|
|
148
|
-
_See code: [src/commands/devops/pipeline/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
157
|
+
_See code: [src/commands/devops/pipeline/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/pipeline/create.ts)_
|
|
149
158
|
|
|
150
159
|
## `sf devops pipeline get`
|
|
151
160
|
|
|
@@ -177,7 +186,7 @@ EXAMPLES
|
|
|
177
186
|
$ sf devops pipeline get --target-org my-devops-org --pipeline-id 0Do000000000001
|
|
178
187
|
```
|
|
179
188
|
|
|
180
|
-
_See code: [src/commands/devops/pipeline/get.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
189
|
+
_See code: [src/commands/devops/pipeline/get.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/pipeline/get.ts)_
|
|
181
190
|
|
|
182
191
|
## `sf devops pipeline list`
|
|
183
192
|
|
|
@@ -208,7 +217,7 @@ EXAMPLES
|
|
|
208
217
|
$ sf devops pipeline list --target-org my-devops-org
|
|
209
218
|
```
|
|
210
219
|
|
|
211
|
-
_See code: [src/commands/devops/pipeline/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
220
|
+
_See code: [src/commands/devops/pipeline/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/pipeline/list.ts)_
|
|
212
221
|
|
|
213
222
|
## `sf devops pipeline project add`
|
|
214
223
|
|
|
@@ -242,7 +251,7 @@ EXAMPLES
|
|
|
242
251
|
0Hn000000000001
|
|
243
252
|
```
|
|
244
253
|
|
|
245
|
-
_See code: [src/commands/devops/pipeline/project/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
254
|
+
_See code: [src/commands/devops/pipeline/project/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/pipeline/project/add.ts)_
|
|
246
255
|
|
|
247
256
|
## `sf devops pipeline project delete`
|
|
248
257
|
|
|
@@ -276,7 +285,7 @@ EXAMPLES
|
|
|
276
285
|
0Hn000000000001
|
|
277
286
|
```
|
|
278
287
|
|
|
279
|
-
_See code: [src/commands/devops/pipeline/project/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
288
|
+
_See code: [src/commands/devops/pipeline/project/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/pipeline/project/delete.ts)_
|
|
280
289
|
|
|
281
290
|
## `sf devops pipeline stage add`
|
|
282
291
|
|
|
@@ -317,7 +326,7 @@ EXAMPLES
|
|
|
317
326
|
--next-stage-id 0Xc000000000003
|
|
318
327
|
```
|
|
319
328
|
|
|
320
|
-
_See code: [src/commands/devops/pipeline/stage/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
329
|
+
_See code: [src/commands/devops/pipeline/stage/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/pipeline/stage/add.ts)_
|
|
321
330
|
|
|
322
331
|
## `sf devops pipeline stage delete`
|
|
323
332
|
|
|
@@ -352,7 +361,40 @@ EXAMPLES
|
|
|
352
361
|
0Xc000000000002
|
|
353
362
|
```
|
|
354
363
|
|
|
355
|
-
_See code: [src/commands/devops/pipeline/stage/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
364
|
+
_See code: [src/commands/devops/pipeline/stage/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/pipeline/stage/delete.ts)_
|
|
365
|
+
|
|
366
|
+
## `sf devops pipeline stage update`
|
|
367
|
+
|
|
368
|
+
Update a DevOps Center pipeline stage.
|
|
369
|
+
|
|
370
|
+
```
|
|
371
|
+
USAGE
|
|
372
|
+
$ sf devops pipeline stage update -o <value> -s <value> -n <value> [--json] [--flags-dir <value>] [--api-version
|
|
373
|
+
<value>]
|
|
374
|
+
|
|
375
|
+
FLAGS
|
|
376
|
+
-n, --name=<value> (required) New name for the pipeline stage.
|
|
377
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
378
|
+
configuration variable is already set.
|
|
379
|
+
-s, --stage-id=<value> (required) ID of the pipeline stage to update.
|
|
380
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
381
|
+
|
|
382
|
+
GLOBAL FLAGS
|
|
383
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
384
|
+
--json Format output as json.
|
|
385
|
+
|
|
386
|
+
DESCRIPTION
|
|
387
|
+
Update a DevOps Center pipeline stage.
|
|
388
|
+
|
|
389
|
+
Updates the name of a pipeline stage.
|
|
390
|
+
|
|
391
|
+
EXAMPLES
|
|
392
|
+
Rename a pipeline stage.
|
|
393
|
+
|
|
394
|
+
$ sf devops pipeline stage update --target-org my-devops-org --stage-id 1QV000000000001 --name "Integration"
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
_See code: [src/commands/devops/pipeline/stage/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/pipeline/stage/update.ts)_
|
|
356
398
|
|
|
357
399
|
## `sf devops pipeline update`
|
|
358
400
|
|
|
@@ -361,14 +403,15 @@ Update a DevOps Center pipeline.
|
|
|
361
403
|
```
|
|
362
404
|
USAGE
|
|
363
405
|
$ sf devops pipeline update -o <value> --pipeline-id <value> [--json] [--flags-dir <value>] [--api-version <value>]
|
|
364
|
-
[--
|
|
406
|
+
[--activate | --deactivate] [-n <value>]
|
|
365
407
|
|
|
366
408
|
FLAGS
|
|
367
409
|
-n, --name=<value> New name for the pipeline.
|
|
368
410
|
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
369
411
|
configuration variable is already set.
|
|
370
|
-
--
|
|
412
|
+
--activate Activate the pipeline. Can't be used with --deactivate.
|
|
371
413
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
414
|
+
--deactivate Deactivate the pipeline. Can't be used with --activate.
|
|
372
415
|
--pipeline-id=<value> (required) ID of the pipeline.
|
|
373
416
|
|
|
374
417
|
GLOBAL FLAGS
|
|
@@ -378,8 +421,8 @@ GLOBAL FLAGS
|
|
|
378
421
|
DESCRIPTION
|
|
379
422
|
Update a DevOps Center pipeline.
|
|
380
423
|
|
|
381
|
-
Activate, deactivate, or rename a DevOps Center pipeline. Use --
|
|
382
|
-
--name to rename. You can combine --
|
|
424
|
+
Activate, deactivate, or rename a DevOps Center pipeline. Use --activate to activate, --deactivate to deactivate, and
|
|
425
|
+
--name to rename. You can combine --deactivate and --name in one command.
|
|
383
426
|
|
|
384
427
|
A pipeline must have at least one stage before you can activate it. You can't modify the pipeline stages after you
|
|
385
428
|
activate and promote changes through it.
|
|
@@ -387,15 +430,15 @@ DESCRIPTION
|
|
|
387
430
|
EXAMPLES
|
|
388
431
|
Activate a pipeline:
|
|
389
432
|
|
|
390
|
-
$ sf devops pipeline update --target-org my-devops-org --pipeline-id 0XB000000000001 --
|
|
433
|
+
$ sf devops pipeline update --target-org my-devops-org --pipeline-id 0XB000000000001 --activate
|
|
391
434
|
|
|
392
435
|
Deactivate and rename in one step.
|
|
393
436
|
|
|
394
|
-
$ sf devops pipeline update --target-org my-devops-org --pipeline-id 0XB000000000001 --
|
|
437
|
+
$ sf devops pipeline update --target-org my-devops-org --pipeline-id 0XB000000000001 --deactivate --name "My \
|
|
395
438
|
Pipeline"
|
|
396
439
|
```
|
|
397
440
|
|
|
398
|
-
_See code: [src/commands/devops/pipeline/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
441
|
+
_See code: [src/commands/devops/pipeline/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/pipeline/update.ts)_
|
|
399
442
|
|
|
400
443
|
## `sf devops project create`
|
|
401
444
|
|
|
@@ -432,7 +475,7 @@ EXAMPLES
|
|
|
432
475
|
update"
|
|
433
476
|
```
|
|
434
477
|
|
|
435
|
-
_See code: [src/commands/devops/project/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
478
|
+
_See code: [src/commands/devops/project/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/project/create.ts)_
|
|
436
479
|
|
|
437
480
|
## `sf devops project list`
|
|
438
481
|
|
|
@@ -467,7 +510,7 @@ EXAMPLES
|
|
|
467
510
|
$ sf devops project list --target-org devops-center@example.com
|
|
468
511
|
```
|
|
469
512
|
|
|
470
|
-
_See code: [src/commands/devops/project/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
513
|
+
_See code: [src/commands/devops/project/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/project/list.ts)_
|
|
471
514
|
|
|
472
515
|
## `sf devops project update`
|
|
473
516
|
|
|
@@ -517,7 +560,7 @@ EXAMPLES
|
|
|
517
560
|
--description "Archived" --no-is-active
|
|
518
561
|
```
|
|
519
562
|
|
|
520
|
-
_See code: [src/commands/devops/project/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
563
|
+
_See code: [src/commands/devops/project/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/project/update.ts)_
|
|
521
564
|
|
|
522
565
|
## `sf devops promote`
|
|
523
566
|
|
|
@@ -527,6 +570,7 @@ Promote work items or a pipeline stage to a target pipeline stage.
|
|
|
527
570
|
USAGE
|
|
528
571
|
$ sf devops promote -o <value> -t <value> [--json] [--flags-dir <value>] [--api-version <value>] [-i <value>... |
|
|
529
572
|
-s <value>] [-a] [-l NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg] [--tests <value>...]
|
|
573
|
+
[--skip-validation]
|
|
530
574
|
|
|
531
575
|
FLAGS
|
|
532
576
|
-a, --deploy-all Deploy all metadata in the branch to the stage's org.
|
|
@@ -539,6 +583,9 @@ FLAGS
|
|
|
539
583
|
exclusive with --work-item-id.
|
|
540
584
|
-t, --target-stage-id=<value> (required) ID of the pipeline stage to promote to.
|
|
541
585
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
586
|
+
--skip-validation Skip pre-promote validation. By default, promotion is validated before proceeding to
|
|
587
|
+
prevent promoting work items without an associated PR. Use this flag to bypass
|
|
588
|
+
validation.
|
|
542
589
|
--tests=<value>... Apex tests to run when --test-level is RunSpecifiedTests.
|
|
543
590
|
|
|
544
591
|
GLOBAL FLAGS
|
|
@@ -613,7 +660,7 @@ FLAG DESCRIPTIONS
|
|
|
613
660
|
spaces.
|
|
614
661
|
```
|
|
615
662
|
|
|
616
|
-
_See code: [src/commands/devops/promote.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
663
|
+
_See code: [src/commands/devops/promote.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/promote.ts)_
|
|
617
664
|
|
|
618
665
|
## `sf devops promotion complete`
|
|
619
666
|
|
|
@@ -650,16 +697,16 @@ DESCRIPTION
|
|
|
650
697
|
If no undeployed work items are found for the stage, the command exits successfully with no action taken.
|
|
651
698
|
|
|
652
699
|
EXAMPLES
|
|
653
|
-
Complete a promotion for an out-of-sync pipeline stage
|
|
700
|
+
Complete a promotion for an out-of-sync pipeline stage:
|
|
654
701
|
|
|
655
702
|
$ sf devops promotion complete --target-org my-devops-org --target-stage-id 1QV000000000001
|
|
656
703
|
|
|
657
|
-
Complete a promotion for a specific work item (e.g. first stage of a pipeline)
|
|
704
|
+
Complete a promotion for a specific work item (e.g. first stage of a pipeline):
|
|
658
705
|
|
|
659
706
|
$ sf devops promotion complete --target-org my-devops-org --target-stage-id 1QV000000000001 --work-item-id \
|
|
660
707
|
1fk000000000001
|
|
661
708
|
|
|
662
|
-
Complete a promotion with full deploy and a specific test level
|
|
709
|
+
Complete a promotion with full deploy and a specific test level:
|
|
663
710
|
|
|
664
711
|
$ sf devops promotion complete --target-org my-devops-org --target-stage-id 1QV000000000001 --deploy-all \
|
|
665
712
|
--test-level RunLocalTests
|
|
@@ -696,7 +743,48 @@ FLAG DESCRIPTIONS
|
|
|
696
743
|
spaces.
|
|
697
744
|
```
|
|
698
745
|
|
|
699
|
-
_See code: [src/commands/devops/promotion/complete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
746
|
+
_See code: [src/commands/devops/promotion/complete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/promotion/complete.ts)_
|
|
747
|
+
|
|
748
|
+
## `sf devops promotion validate`
|
|
749
|
+
|
|
750
|
+
Validate work item promotion for a pipeline stage.
|
|
751
|
+
|
|
752
|
+
```
|
|
753
|
+
USAGE
|
|
754
|
+
$ sf devops promotion validate -o <value> -t <value> -i <value>... [--json] [--flags-dir <value>] [--api-version
|
|
755
|
+
<value>]
|
|
756
|
+
|
|
757
|
+
FLAGS
|
|
758
|
+
-i, --work-item-id=<value>... (required) ID of a work item to validate for promotion. Specify multiple times for
|
|
759
|
+
multiple work items.
|
|
760
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
761
|
+
configuration variable is already set.
|
|
762
|
+
-t, --target-stage-id=<value> (required) ID of the target pipeline stage to validate promotion to.
|
|
763
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
764
|
+
|
|
765
|
+
GLOBAL FLAGS
|
|
766
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
767
|
+
--json Format output as json.
|
|
768
|
+
|
|
769
|
+
DESCRIPTION
|
|
770
|
+
Validate work item promotion for a pipeline stage.
|
|
771
|
+
|
|
772
|
+
Validates whether the specified work items can be promoted to the target pipeline stage. Checks for VCS and object
|
|
773
|
+
permission errors before a promotion is attempted.
|
|
774
|
+
|
|
775
|
+
EXAMPLES
|
|
776
|
+
Validate promotion of a work item to a target stage:
|
|
777
|
+
|
|
778
|
+
$ sf devops promotion validate --target-org my-devops-org --target-stage-id 1QV000000000001 --work-item-id \
|
|
779
|
+
1fk000000000001
|
|
780
|
+
|
|
781
|
+
Validate promotion of multiple work items:
|
|
782
|
+
|
|
783
|
+
$ sf devops promotion validate --target-org my-devops-org --target-stage-id 1QV000000000001 --work-item-id \
|
|
784
|
+
1fk000000000001 --work-item-id 1fk000000000002
|
|
785
|
+
```
|
|
786
|
+
|
|
787
|
+
_See code: [src/commands/devops/promotion/validate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/promotion/validate.ts)_
|
|
700
788
|
|
|
701
789
|
## `sf devops request status`
|
|
702
790
|
|
|
@@ -727,7 +815,7 @@ EXAMPLES
|
|
|
727
815
|
$ sf devops request status --target-org my-devops-org --request-token a0B000000000001
|
|
728
816
|
```
|
|
729
817
|
|
|
730
|
-
_See code: [src/commands/devops/request/status.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
818
|
+
_See code: [src/commands/devops/request/status.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/request/status.ts)_
|
|
731
819
|
|
|
732
820
|
## `sf devops review create`
|
|
733
821
|
|
|
@@ -764,7 +852,7 @@ EXAMPLES
|
|
|
764
852
|
$ sf devops review create --target-org my-devops-org --work-item-id 0Wx000000000001
|
|
765
853
|
```
|
|
766
854
|
|
|
767
|
-
_See code: [src/commands/devops/review/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
855
|
+
_See code: [src/commands/devops/review/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/review/create.ts)_
|
|
768
856
|
|
|
769
857
|
## `sf devops stage branch add`
|
|
770
858
|
|
|
@@ -807,7 +895,45 @@ EXAMPLES
|
|
|
807
895
|
--branch-name integration --create-vcs-branch
|
|
808
896
|
```
|
|
809
897
|
|
|
810
|
-
_See code: [src/commands/devops/stage/branch/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
898
|
+
_See code: [src/commands/devops/stage/branch/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/stage/branch/add.ts)_
|
|
899
|
+
|
|
900
|
+
## `sf devops stage branch delete`
|
|
901
|
+
|
|
902
|
+
Delete the source code repository branch associated with a pipeline stage.
|
|
903
|
+
|
|
904
|
+
```
|
|
905
|
+
USAGE
|
|
906
|
+
$ sf devops stage branch delete -o <value> --pipeline-id <value> --stage-id <value> [--json] [--flags-dir <value>]
|
|
907
|
+
[--api-version <value>]
|
|
908
|
+
|
|
909
|
+
FLAGS
|
|
910
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
911
|
+
configuration variable is already set.
|
|
912
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
913
|
+
--pipeline-id=<value> (required) ID of the pipeline that contains the stage. Used to verify the pipeline is
|
|
914
|
+
inactive before deleting.
|
|
915
|
+
--stage-id=<value> (required) ID of the pipeline stage whose branch you want to delete.
|
|
916
|
+
|
|
917
|
+
GLOBAL FLAGS
|
|
918
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
919
|
+
--json Format output as json.
|
|
920
|
+
|
|
921
|
+
DESCRIPTION
|
|
922
|
+
Delete the source code repository branch associated with a pipeline stage.
|
|
923
|
+
|
|
924
|
+
Removes the branch linked to the specified pipeline stage. Because branches are configured from right to left (a stage
|
|
925
|
+
can have a branch only after the stage to its right does), removing a branch also removes the branches from all
|
|
926
|
+
upstream stages (to the left) in the pipeline, keeping it in a valid state. The branch records in the repository are
|
|
927
|
+
not deleted; only their association with the stages is removed. The stage must belong to an inactive pipeline.
|
|
928
|
+
|
|
929
|
+
EXAMPLES
|
|
930
|
+
Delete the branch associated with a pipeline stage:
|
|
931
|
+
|
|
932
|
+
$ sf devops stage branch delete --target-org my-devops-org --pipeline-id 0Xo000000000001 --stage-id \
|
|
933
|
+
0Xp000000000001
|
|
934
|
+
```
|
|
935
|
+
|
|
936
|
+
_See code: [src/commands/devops/stage/branch/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/stage/branch/delete.ts)_
|
|
811
937
|
|
|
812
938
|
## `sf devops stage environment add`
|
|
813
939
|
|
|
@@ -847,7 +973,7 @@ EXAMPLES
|
|
|
847
973
|
Production_Org --org-type Production
|
|
848
974
|
```
|
|
849
975
|
|
|
850
|
-
_See code: [src/commands/devops/stage/environment/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
976
|
+
_See code: [src/commands/devops/stage/environment/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/stage/environment/add.ts)_
|
|
851
977
|
|
|
852
978
|
## `sf devops stage environment delete`
|
|
853
979
|
|
|
@@ -881,7 +1007,7 @@ EXAMPLES
|
|
|
881
1007
|
0Xe000000000001
|
|
882
1008
|
```
|
|
883
1009
|
|
|
884
|
-
_See code: [src/commands/devops/stage/environment/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1010
|
+
_See code: [src/commands/devops/stage/environment/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/stage/environment/delete.ts)_
|
|
885
1011
|
|
|
886
1012
|
## `sf devops work-item combine`
|
|
887
1013
|
|
|
@@ -930,7 +1056,7 @@ FLAG DESCRIPTIONS
|
|
|
930
1056
|
are merged into the parent's branch during promotion.
|
|
931
1057
|
```
|
|
932
1058
|
|
|
933
|
-
_See code: [src/commands/devops/work-item/combine.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1059
|
+
_See code: [src/commands/devops/work-item/combine.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/work-item/combine.ts)_
|
|
934
1060
|
|
|
935
1061
|
## `sf devops work-item create`
|
|
936
1062
|
|
|
@@ -971,7 +1097,7 @@ EXAMPLES
|
|
|
971
1097
|
--description "Implement dark mode toggle in settings page"
|
|
972
1098
|
```
|
|
973
1099
|
|
|
974
|
-
_See code: [src/commands/devops/work-item/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1100
|
+
_See code: [src/commands/devops/work-item/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/work-item/create.ts)_
|
|
975
1101
|
|
|
976
1102
|
## `sf devops work-item list`
|
|
977
1103
|
|
|
@@ -1007,7 +1133,7 @@ EXAMPLES
|
|
|
1007
1133
|
$ sf devops work-item list --target-org my-devops-org --project-id 1Qg000000000001 --json
|
|
1008
1134
|
```
|
|
1009
1135
|
|
|
1010
|
-
_See code: [src/commands/devops/work-item/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1136
|
+
_See code: [src/commands/devops/work-item/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/work-item/list.ts)_
|
|
1011
1137
|
|
|
1012
1138
|
## `sf devops work-item prepare`
|
|
1013
1139
|
|
|
@@ -1048,7 +1174,7 @@ EXAMPLES
|
|
|
1048
1174
|
--target-stage-id 05S000000000002
|
|
1049
1175
|
```
|
|
1050
1176
|
|
|
1051
|
-
_See code: [src/commands/devops/work-item/prepare.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1177
|
+
_See code: [src/commands/devops/work-item/prepare.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/work-item/prepare.ts)_
|
|
1052
1178
|
|
|
1053
1179
|
## `sf devops work-item update`
|
|
1054
1180
|
|
|
@@ -1095,7 +1221,7 @@ EXAMPLES
|
|
|
1095
1221
|
--description "Users can't log in on mobile" --status "In Progress"
|
|
1096
1222
|
```
|
|
1097
1223
|
|
|
1098
|
-
_See code: [src/commands/devops/work-item/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1224
|
+
_See code: [src/commands/devops/work-item/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/devops/work-item/update.ts)_
|
|
1099
1225
|
|
|
1100
1226
|
## `sf project deploy pipeline quick`
|
|
1101
1227
|
|
|
@@ -1169,7 +1295,7 @@ FLAG DESCRIPTIONS
|
|
|
1169
1295
|
"sf project deploy pipeline report".
|
|
1170
1296
|
```
|
|
1171
1297
|
|
|
1172
|
-
_See code: [src/commands/project/deploy/pipeline/quick.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1298
|
+
_See code: [src/commands/project/deploy/pipeline/quick.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/project/deploy/pipeline/quick.ts)_
|
|
1173
1299
|
|
|
1174
1300
|
## `sf project deploy pipeline report`
|
|
1175
1301
|
|
|
@@ -1217,7 +1343,7 @@ FLAG DESCRIPTIONS
|
|
|
1217
1343
|
your most recent operation was longer than 3 days ago, this flag won't find the job ID.
|
|
1218
1344
|
```
|
|
1219
1345
|
|
|
1220
|
-
_See code: [src/commands/project/deploy/pipeline/report.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1346
|
+
_See code: [src/commands/project/deploy/pipeline/report.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/project/deploy/pipeline/report.ts)_
|
|
1221
1347
|
|
|
1222
1348
|
## `sf project deploy pipeline resume`
|
|
1223
1349
|
|
|
@@ -1284,7 +1410,7 @@ FLAG DESCRIPTIONS
|
|
|
1284
1410
|
returns the job ID. To check the status of the operation, run "sf project deploy pipeline report".
|
|
1285
1411
|
```
|
|
1286
1412
|
|
|
1287
|
-
_See code: [src/commands/project/deploy/pipeline/resume.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1413
|
+
_See code: [src/commands/project/deploy/pipeline/resume.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/project/deploy/pipeline/resume.ts)_
|
|
1288
1414
|
|
|
1289
1415
|
## `sf project deploy pipeline start`
|
|
1290
1416
|
|
|
@@ -1384,7 +1510,7 @@ FLAG DESCRIPTIONS
|
|
|
1384
1510
|
"sf project deploy pipeline report".
|
|
1385
1511
|
```
|
|
1386
1512
|
|
|
1387
|
-
_See code: [src/commands/project/deploy/pipeline/start.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1513
|
+
_See code: [src/commands/project/deploy/pipeline/start.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/project/deploy/pipeline/start.ts)_
|
|
1388
1514
|
|
|
1389
1515
|
## `sf project deploy pipeline validate`
|
|
1390
1516
|
|
|
@@ -1484,7 +1610,7 @@ FLAG DESCRIPTIONS
|
|
|
1484
1610
|
"sf project deploy pipeline report".
|
|
1485
1611
|
```
|
|
1486
1612
|
|
|
1487
|
-
_See code: [src/commands/project/deploy/pipeline/validate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.
|
|
1613
|
+
_See code: [src/commands/project/deploy/pipeline/validate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.0/src/commands/project/deploy/pipeline/validate.ts)_
|
|
1488
1614
|
|
|
1489
1615
|
<!-- commandsstop -->
|
|
1490
1616
|
|
|
@@ -15,7 +15,7 @@ export default class DevopsPipelineCreate extends SfCommand<CreatePipelineResult
|
|
|
15
15
|
'repo-owner': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
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
19
|
};
|
|
20
20
|
run(): Promise<CreatePipelineResult>;
|
|
21
21
|
private resolveRepoType;
|
|
@@ -54,9 +54,10 @@ export default class DevopsPipelineCreate extends SfCommand {
|
|
|
54
54
|
'bitbucket-project-key': Flags.string({
|
|
55
55
|
summary: messages.getMessage('flags.bitbucket-project-key.summary'),
|
|
56
56
|
}),
|
|
57
|
-
|
|
58
|
-
summary: messages.getMessage('flags.
|
|
59
|
-
char: '
|
|
57
|
+
stage: Flags.string({
|
|
58
|
+
summary: messages.getMessage('flags.stage.summary'),
|
|
59
|
+
char: 's',
|
|
60
|
+
multiple: true,
|
|
60
61
|
}),
|
|
61
62
|
};
|
|
62
63
|
async run() {
|
|
@@ -91,13 +92,13 @@ export default class DevopsPipelineCreate extends SfCommand {
|
|
|
91
92
|
result = await createPipeline({
|
|
92
93
|
connection,
|
|
93
94
|
name: flags['name'],
|
|
94
|
-
description: flags['description'],
|
|
95
95
|
repo: flags['repo'],
|
|
96
96
|
repoType,
|
|
97
97
|
createRepo: flags['create-repo'],
|
|
98
98
|
repoOwner: flags['repo-owner'],
|
|
99
99
|
bitbucketWorkspace: flags['bitbucket-workspace'],
|
|
100
100
|
bitbucketProjectKey: flags['bitbucket-project-key'],
|
|
101
|
+
stages: flags['stage'],
|
|
101
102
|
});
|
|
102
103
|
}
|
|
103
104
|
catch (error) {
|
|
@@ -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,kCAAkC,EAAE,wBAAwB,CAAC,CAAC;AACrG,MAAM,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,cAAc,CAAC,CAAC;AAEtG,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,SAA+B;IACxE,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAE5D,MAAM,CAAU,KAAK,GAAG;QAC7B,YAAY,EAAE,KAAK,CA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AA4B;QACrG,IAAI,MAAM,CAAC,UAAU,EAAE,OAAO,EAAE,CAAC;YAC/B,IAAI,CAAC,GAAG,CAAC,uBAAuB,QAAQ,KAAK,MAAM,CAAC,UAAU,CAAC,QAAQ,GAAG,CAAC,CAAC;QAC9E,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,kCAAkC,MAAM,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC;QAChE,IAAI,CAAC,GAAG,CAAC,kBAAkB,MAAM,CAAC,UAAU,IAAI,EAAE,EAAE,CAAC,CAAC;QACtD,IAAI,CAAC,GAAG,CAAC,kBAAkB,MAAM,CAAC,UAAU,EAAE,OAAO,IAAI,EAAE,KAAK,MAAM,CAAC,UAAU,EAAE,QAAQ,IAAI,EAAE,GAAG,CAAC,CAAC;QACtG,IAAI,CAAC,GAAG,CAAC,kBAAkB,MAAM,CAAC,MAAM,IAAI,UAAU,EAAE,CAAC,CAAC;QAC1D,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;QAC1B,MAAM,QAAQ,GAAG,QAAQ,IAAI,OAAO,CAAC;QACrC,MAAM,eAAe,GAAG,MAAM,CAAC,UAAU,IAAI,MAAM,CAAC;QACpD,IAAI,CAAC,GAAG,CACN,sEAAsE,QAAQ,kBAAkB,eAAe,EAAE,CAClH,CAAC;QACF,IAAI,CAAC,GAAG,CACN,qEAAqE,QAAQ,kBAAkB,eAAe,oBAAoB,CACnI,CAAC;IACJ,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Org } from '@salesforce/core';
|
|
2
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
3
|
+
export type PipelineStageUpdateResult = {
|
|
4
|
+
success: boolean;
|
|
5
|
+
stageId: string;
|
|
6
|
+
name: string;
|
|
7
|
+
};
|
|
8
|
+
export default class DevopsPipelineStageUpdate extends SfCommand<PipelineStageUpdateResult> {
|
|
9
|
+
static readonly summary: string;
|
|
10
|
+
static readonly description: string;
|
|
11
|
+
static readonly examples: string[];
|
|
12
|
+
static readonly flags: {
|
|
13
|
+
'target-org': import("@oclif/core/interfaces").OptionFlag<Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
'stage-id': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
name: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
|
+
};
|
|
18
|
+
run(): Promise<PipelineStageUpdateResult>;
|
|
19
|
+
}
|