@salesforce/plugin-devops-center 2.0.0 → 2.0.1
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 +150 -31
- 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/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.js +24 -12
- 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.stage.update.md +25 -0
- 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 +294 -56
- package/package.json +3 -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/oclif.manifest.json
CHANGED
|
@@ -107,6 +107,12 @@
|
|
|
107
107
|
"hasDynamicHelp": false,
|
|
108
108
|
"multiple": true,
|
|
109
109
|
"type": "option"
|
|
110
|
+
},
|
|
111
|
+
"skip-validation": {
|
|
112
|
+
"name": "skip-validation",
|
|
113
|
+
"summary": "Skip pre-promote validation. By default, promotion is validated before proceeding to prevent promoting work items without an associated PR. Use this flag to bypass validation.",
|
|
114
|
+
"allowNo": false,
|
|
115
|
+
"type": "boolean"
|
|
110
116
|
}
|
|
111
117
|
},
|
|
112
118
|
"hasDynamicHelp": true,
|
|
@@ -698,9 +704,9 @@
|
|
|
698
704
|
"args": {},
|
|
699
705
|
"description": "Deploys work items that were merged into the pipeline branch outside of DevOps Center (externally merged) into the target stage org and updates DevOps Center records. Equivalent to the \"Complete Promotion\" action in the DevOps Center UI when a stage is out of sync.\n\nIf no undeployed work items are found for the stage, the command exits successfully with no action taken.",
|
|
700
706
|
"examples": [
|
|
701
|
-
"Complete a promotion for an out-of-sync pipeline stage
|
|
702
|
-
"Complete a promotion for a specific work item (e.g. first stage of a pipeline)
|
|
703
|
-
"Complete a promotion with full deploy and a specific test level
|
|
707
|
+
"Complete a promotion for an out-of-sync pipeline stage:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --target-stage-id 1QV000000000001",
|
|
708
|
+
"Complete a promotion for a specific work item (e.g. first stage of a pipeline):\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --target-stage-id 1QV000000000001 --work-item-id 1fk000000000001",
|
|
709
|
+
"Complete a promotion with full deploy and a specific test level:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --target-stage-id 1QV000000000001 --deploy-all --test-level RunLocalTests"
|
|
704
710
|
],
|
|
705
711
|
"flags": {
|
|
706
712
|
"json": {
|
|
@@ -803,6 +809,84 @@
|
|
|
803
809
|
"complete.js"
|
|
804
810
|
]
|
|
805
811
|
},
|
|
812
|
+
"devops:promotion:validate": {
|
|
813
|
+
"aliases": [],
|
|
814
|
+
"args": {},
|
|
815
|
+
"description": "Validates whether the specified work items can be promoted to the target pipeline stage. Checks for VCS and object permission errors before a promotion is attempted.",
|
|
816
|
+
"examples": [
|
|
817
|
+
"Validate promotion of a work item to a target stage:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --target-stage-id 1QV000000000001 --work-item-id 1fk000000000001",
|
|
818
|
+
"Validate promotion of multiple work items:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --target-stage-id 1QV000000000001 --work-item-id 1fk000000000001 --work-item-id 1fk000000000002"
|
|
819
|
+
],
|
|
820
|
+
"flags": {
|
|
821
|
+
"json": {
|
|
822
|
+
"description": "Format output as json.",
|
|
823
|
+
"helpGroup": "GLOBAL",
|
|
824
|
+
"name": "json",
|
|
825
|
+
"allowNo": false,
|
|
826
|
+
"type": "boolean"
|
|
827
|
+
},
|
|
828
|
+
"flags-dir": {
|
|
829
|
+
"helpGroup": "GLOBAL",
|
|
830
|
+
"name": "flags-dir",
|
|
831
|
+
"summary": "Import flag values from a directory.",
|
|
832
|
+
"hasDynamicHelp": false,
|
|
833
|
+
"multiple": false,
|
|
834
|
+
"type": "option"
|
|
835
|
+
},
|
|
836
|
+
"target-org": {
|
|
837
|
+
"char": "o",
|
|
838
|
+
"name": "target-org",
|
|
839
|
+
"noCacheDefault": true,
|
|
840
|
+
"required": true,
|
|
841
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
842
|
+
"hasDynamicHelp": true,
|
|
843
|
+
"multiple": false,
|
|
844
|
+
"type": "option"
|
|
845
|
+
},
|
|
846
|
+
"api-version": {
|
|
847
|
+
"description": "Override the api version used for api requests made by this command",
|
|
848
|
+
"name": "api-version",
|
|
849
|
+
"hasDynamicHelp": false,
|
|
850
|
+
"multiple": false,
|
|
851
|
+
"type": "option"
|
|
852
|
+
},
|
|
853
|
+
"target-stage-id": {
|
|
854
|
+
"char": "t",
|
|
855
|
+
"name": "target-stage-id",
|
|
856
|
+
"required": true,
|
|
857
|
+
"summary": "ID of the target pipeline stage to validate promotion to.",
|
|
858
|
+
"hasDynamicHelp": false,
|
|
859
|
+
"multiple": false,
|
|
860
|
+
"type": "option"
|
|
861
|
+
},
|
|
862
|
+
"work-item-id": {
|
|
863
|
+
"char": "i",
|
|
864
|
+
"name": "work-item-id",
|
|
865
|
+
"required": true,
|
|
866
|
+
"summary": "ID of a work item to validate for promotion. Specify multiple times for multiple work items.",
|
|
867
|
+
"hasDynamicHelp": false,
|
|
868
|
+
"multiple": true,
|
|
869
|
+
"type": "option"
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
"hasDynamicHelp": true,
|
|
873
|
+
"hiddenAliases": [],
|
|
874
|
+
"id": "devops:promotion:validate",
|
|
875
|
+
"pluginAlias": "@salesforce/plugin-devops-center",
|
|
876
|
+
"pluginName": "@salesforce/plugin-devops-center",
|
|
877
|
+
"pluginType": "core",
|
|
878
|
+
"strict": true,
|
|
879
|
+
"summary": "Validate work item promotion for a pipeline stage.",
|
|
880
|
+
"enableJsonFlag": true,
|
|
881
|
+
"isESM": true,
|
|
882
|
+
"relativePath": [
|
|
883
|
+
"lib",
|
|
884
|
+
"commands",
|
|
885
|
+
"devops",
|
|
886
|
+
"promotion",
|
|
887
|
+
"validate.js"
|
|
888
|
+
]
|
|
889
|
+
},
|
|
806
890
|
"devops:request:status": {
|
|
807
891
|
"aliases": [],
|
|
808
892
|
"args": {},
|
|
@@ -1682,12 +1766,12 @@
|
|
|
1682
1766
|
"delete.js"
|
|
1683
1767
|
]
|
|
1684
1768
|
},
|
|
1685
|
-
"devops:stage:
|
|
1769
|
+
"devops:pipeline:stage:update": {
|
|
1686
1770
|
"aliases": [],
|
|
1687
1771
|
"args": {},
|
|
1688
|
-
"description": "
|
|
1772
|
+
"description": "Updates the name of a pipeline stage.",
|
|
1689
1773
|
"examples": [
|
|
1690
|
-
"
|
|
1774
|
+
"Rename a pipeline stage.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --stage-id 1QV000000000001 --name \"Integration\""
|
|
1691
1775
|
],
|
|
1692
1776
|
"flags": {
|
|
1693
1777
|
"json": {
|
|
@@ -1722,58 +1806,125 @@
|
|
|
1722
1806
|
"multiple": false,
|
|
1723
1807
|
"type": "option"
|
|
1724
1808
|
},
|
|
1725
|
-
"
|
|
1726
|
-
"
|
|
1809
|
+
"stage-id": {
|
|
1810
|
+
"char": "s",
|
|
1811
|
+
"name": "stage-id",
|
|
1727
1812
|
"required": true,
|
|
1728
|
-
"summary": "ID of the pipeline
|
|
1813
|
+
"summary": "ID of the pipeline stage to update.",
|
|
1729
1814
|
"hasDynamicHelp": false,
|
|
1730
1815
|
"multiple": false,
|
|
1731
1816
|
"type": "option"
|
|
1732
1817
|
},
|
|
1733
|
-
"
|
|
1734
|
-
"
|
|
1818
|
+
"name": {
|
|
1819
|
+
"char": "n",
|
|
1820
|
+
"name": "name",
|
|
1735
1821
|
"required": true,
|
|
1736
|
-
"summary": "
|
|
1822
|
+
"summary": "New name for the pipeline stage.",
|
|
1737
1823
|
"hasDynamicHelp": false,
|
|
1738
1824
|
"multiple": false,
|
|
1739
1825
|
"type": "option"
|
|
1826
|
+
}
|
|
1827
|
+
},
|
|
1828
|
+
"hasDynamicHelp": true,
|
|
1829
|
+
"hiddenAliases": [],
|
|
1830
|
+
"id": "devops:pipeline:stage:update",
|
|
1831
|
+
"pluginAlias": "@salesforce/plugin-devops-center",
|
|
1832
|
+
"pluginName": "@salesforce/plugin-devops-center",
|
|
1833
|
+
"pluginType": "core",
|
|
1834
|
+
"strict": true,
|
|
1835
|
+
"summary": "Update a DevOps Center pipeline stage.",
|
|
1836
|
+
"enableJsonFlag": true,
|
|
1837
|
+
"isESM": true,
|
|
1838
|
+
"relativePath": [
|
|
1839
|
+
"lib",
|
|
1840
|
+
"commands",
|
|
1841
|
+
"devops",
|
|
1842
|
+
"pipeline",
|
|
1843
|
+
"stage",
|
|
1844
|
+
"update.js"
|
|
1845
|
+
]
|
|
1846
|
+
},
|
|
1847
|
+
"devops:stage:branch:add": {
|
|
1848
|
+
"aliases": [],
|
|
1849
|
+
"args": {},
|
|
1850
|
+
"description": "By default, the branch must exist in the repository. Use --create-vcs-branch to create a branch if it doesn't exist.\nEach pipeline stage supports only one branch. Adding a branch replaces any existing branch linked to the pipeline stage.",
|
|
1851
|
+
"examples": [
|
|
1852
|
+
"Add an existing branch to a stage:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0Xo000000000001 --stage-id 0Xp000000000001 --branch-name main",
|
|
1853
|
+
"Create and add a branch to a pipeline stage:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0Xo000000000001 --stage-id 0Xp000000000002 --branch-name integration --create-vcs-branch"
|
|
1854
|
+
],
|
|
1855
|
+
"flags": {
|
|
1856
|
+
"json": {
|
|
1857
|
+
"description": "Format output as json.",
|
|
1858
|
+
"helpGroup": "GLOBAL",
|
|
1859
|
+
"name": "json",
|
|
1860
|
+
"allowNo": false,
|
|
1861
|
+
"type": "boolean"
|
|
1740
1862
|
},
|
|
1741
|
-
"
|
|
1742
|
-
"
|
|
1743
|
-
"name": "
|
|
1863
|
+
"flags-dir": {
|
|
1864
|
+
"helpGroup": "GLOBAL",
|
|
1865
|
+
"name": "flags-dir",
|
|
1866
|
+
"summary": "Import flag values from a directory.",
|
|
1867
|
+
"hasDynamicHelp": false,
|
|
1868
|
+
"multiple": false,
|
|
1869
|
+
"type": "option"
|
|
1870
|
+
},
|
|
1871
|
+
"target-org": {
|
|
1872
|
+
"char": "o",
|
|
1873
|
+
"name": "target-org",
|
|
1874
|
+
"noCacheDefault": true,
|
|
1744
1875
|
"required": true,
|
|
1745
|
-
"summary": "
|
|
1876
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
1877
|
+
"hasDynamicHelp": true,
|
|
1878
|
+
"multiple": false,
|
|
1879
|
+
"type": "option"
|
|
1880
|
+
},
|
|
1881
|
+
"api-version": {
|
|
1882
|
+
"description": "Override the api version used for api requests made by this command",
|
|
1883
|
+
"name": "api-version",
|
|
1746
1884
|
"hasDynamicHelp": false,
|
|
1747
1885
|
"multiple": false,
|
|
1748
1886
|
"type": "option"
|
|
1749
1887
|
},
|
|
1750
|
-
"
|
|
1751
|
-
"name": "
|
|
1888
|
+
"pipeline-id": {
|
|
1889
|
+
"name": "pipeline-id",
|
|
1752
1890
|
"required": true,
|
|
1753
|
-
"summary": "
|
|
1891
|
+
"summary": "ID of the pipeline that contains the stage.",
|
|
1754
1892
|
"hasDynamicHelp": false,
|
|
1755
1893
|
"multiple": false,
|
|
1756
|
-
"options": [
|
|
1757
|
-
"Production",
|
|
1758
|
-
"Sandbox"
|
|
1759
|
-
],
|
|
1760
1894
|
"type": "option"
|
|
1761
1895
|
},
|
|
1762
|
-
"
|
|
1763
|
-
"name": "
|
|
1764
|
-
"
|
|
1896
|
+
"stage-id": {
|
|
1897
|
+
"name": "stage-id",
|
|
1898
|
+
"required": true,
|
|
1899
|
+
"summary": "ID of the pipeline stage to associate the branch with.",
|
|
1900
|
+
"hasDynamicHelp": false,
|
|
1901
|
+
"multiple": false,
|
|
1902
|
+
"type": "option"
|
|
1903
|
+
},
|
|
1904
|
+
"branch-name": {
|
|
1905
|
+
"char": "b",
|
|
1906
|
+
"name": "branch-name",
|
|
1907
|
+
"required": true,
|
|
1908
|
+
"summary": "Name of the repository branch to assign to the stage.",
|
|
1909
|
+
"hasDynamicHelp": false,
|
|
1910
|
+
"multiple": false,
|
|
1911
|
+
"type": "option"
|
|
1912
|
+
},
|
|
1913
|
+
"create-vcs-branch": {
|
|
1914
|
+
"name": "create-vcs-branch",
|
|
1915
|
+
"summary": "Create the branch in the remote repository if it doesn't already exist.",
|
|
1765
1916
|
"allowNo": false,
|
|
1766
1917
|
"type": "boolean"
|
|
1767
1918
|
}
|
|
1768
1919
|
},
|
|
1769
1920
|
"hasDynamicHelp": true,
|
|
1770
1921
|
"hiddenAliases": [],
|
|
1771
|
-
"id": "devops:stage:
|
|
1922
|
+
"id": "devops:stage:branch:add",
|
|
1772
1923
|
"pluginAlias": "@salesforce/plugin-devops-center",
|
|
1773
1924
|
"pluginName": "@salesforce/plugin-devops-center",
|
|
1774
1925
|
"pluginType": "core",
|
|
1775
1926
|
"strict": true,
|
|
1776
|
-
"summary": "Add a
|
|
1927
|
+
"summary": "Add a source code repository branch to a pipeline stage.",
|
|
1777
1928
|
"enableJsonFlag": true,
|
|
1778
1929
|
"isESM": true,
|
|
1779
1930
|
"relativePath": [
|
|
@@ -1781,16 +1932,16 @@
|
|
|
1781
1932
|
"commands",
|
|
1782
1933
|
"devops",
|
|
1783
1934
|
"stage",
|
|
1784
|
-
"
|
|
1935
|
+
"branch",
|
|
1785
1936
|
"add.js"
|
|
1786
1937
|
]
|
|
1787
1938
|
},
|
|
1788
|
-
"devops:stage:
|
|
1939
|
+
"devops:stage:branch:delete": {
|
|
1789
1940
|
"aliases": [],
|
|
1790
1941
|
"args": {},
|
|
1791
|
-
"description": "Removes the specified
|
|
1942
|
+
"description": "Removes the branch linked to the specified pipeline stage. Because branches are configured from right to left (a stage can have a branch only after the stage to its right does), removing a branch also removes the branches from all upstream stages (to the left) in the pipeline, keeping it in a valid state. The branch records in the repository are not deleted; only their association with the stages is removed. The stage must belong to an inactive pipeline.",
|
|
1792
1943
|
"examples": [
|
|
1793
|
-
"Delete
|
|
1944
|
+
"Delete the branch associated with a pipeline stage:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0Xo000000000001 --stage-id 0Xp000000000001"
|
|
1794
1945
|
],
|
|
1795
1946
|
"flags": {
|
|
1796
1947
|
"json": {
|
|
@@ -1828,16 +1979,15 @@
|
|
|
1828
1979
|
"pipeline-id": {
|
|
1829
1980
|
"name": "pipeline-id",
|
|
1830
1981
|
"required": true,
|
|
1831
|
-
"summary": "ID of the pipeline. Used to verify the pipeline is inactive before deleting.",
|
|
1982
|
+
"summary": "ID of the pipeline that contains the stage. Used to verify the pipeline is inactive before deleting.",
|
|
1832
1983
|
"hasDynamicHelp": false,
|
|
1833
1984
|
"multiple": false,
|
|
1834
1985
|
"type": "option"
|
|
1835
1986
|
},
|
|
1836
|
-
"
|
|
1837
|
-
"
|
|
1838
|
-
"name": "environment-id",
|
|
1987
|
+
"stage-id": {
|
|
1988
|
+
"name": "stage-id",
|
|
1839
1989
|
"required": true,
|
|
1840
|
-
"summary": "ID of the
|
|
1990
|
+
"summary": "ID of the pipeline stage whose branch you want to delete.",
|
|
1841
1991
|
"hasDynamicHelp": false,
|
|
1842
1992
|
"multiple": false,
|
|
1843
1993
|
"type": "option"
|
|
@@ -1845,12 +1995,12 @@
|
|
|
1845
1995
|
},
|
|
1846
1996
|
"hasDynamicHelp": true,
|
|
1847
1997
|
"hiddenAliases": [],
|
|
1848
|
-
"id": "devops:stage:
|
|
1998
|
+
"id": "devops:stage:branch:delete",
|
|
1849
1999
|
"pluginAlias": "@salesforce/plugin-devops-center",
|
|
1850
2000
|
"pluginName": "@salesforce/plugin-devops-center",
|
|
1851
2001
|
"pluginType": "core",
|
|
1852
2002
|
"strict": true,
|
|
1853
|
-
"summary": "Delete
|
|
2003
|
+
"summary": "Delete the source code repository branch associated with a pipeline stage.",
|
|
1854
2004
|
"enableJsonFlag": true,
|
|
1855
2005
|
"isESM": true,
|
|
1856
2006
|
"relativePath": [
|
|
@@ -1858,17 +2008,16 @@
|
|
|
1858
2008
|
"commands",
|
|
1859
2009
|
"devops",
|
|
1860
2010
|
"stage",
|
|
1861
|
-
"
|
|
2011
|
+
"branch",
|
|
1862
2012
|
"delete.js"
|
|
1863
2013
|
]
|
|
1864
2014
|
},
|
|
1865
|
-
"devops:stage:
|
|
2015
|
+
"devops:stage:environment:add": {
|
|
1866
2016
|
"aliases": [],
|
|
1867
2017
|
"args": {},
|
|
1868
|
-
"description": "
|
|
2018
|
+
"description": "This command triggers an OAuth flow to authenticate the environment. A browser window opens automatically for you to log in.",
|
|
1869
2019
|
"examples": [
|
|
1870
|
-
"Add
|
|
1871
|
-
"Create and add a branch to a pipeline stage:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0Xo000000000001 --stage-id 0Xp000000000002 --branch-name integration --create-vcs-branch"
|
|
2020
|
+
"Add a production environment to a stage using its ID:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --stage-id 0Xp000000000001 --environment-name Production_Org --org-type Production"
|
|
1872
2021
|
],
|
|
1873
2022
|
"flags": {
|
|
1874
2023
|
"json": {
|
|
@@ -1914,35 +2063,47 @@
|
|
|
1914
2063
|
"stage-id": {
|
|
1915
2064
|
"name": "stage-id",
|
|
1916
2065
|
"required": true,
|
|
1917
|
-
"summary": "ID of the pipeline stage
|
|
2066
|
+
"summary": "ID of the pipeline stage.",
|
|
1918
2067
|
"hasDynamicHelp": false,
|
|
1919
2068
|
"multiple": false,
|
|
1920
2069
|
"type": "option"
|
|
1921
2070
|
},
|
|
1922
|
-
"
|
|
1923
|
-
"char": "
|
|
1924
|
-
"name": "
|
|
2071
|
+
"environment-name": {
|
|
2072
|
+
"char": "e",
|
|
2073
|
+
"name": "environment-name",
|
|
1925
2074
|
"required": true,
|
|
1926
|
-
"summary": "Name of the
|
|
2075
|
+
"summary": "Name of the environment.",
|
|
1927
2076
|
"hasDynamicHelp": false,
|
|
1928
2077
|
"multiple": false,
|
|
1929
2078
|
"type": "option"
|
|
1930
2079
|
},
|
|
1931
|
-
"
|
|
1932
|
-
"name": "
|
|
1933
|
-
"
|
|
2080
|
+
"org-type": {
|
|
2081
|
+
"name": "org-type",
|
|
2082
|
+
"required": true,
|
|
2083
|
+
"summary": "Type of the Salesforce org. Valid values: Production, Sandbox.",
|
|
2084
|
+
"hasDynamicHelp": false,
|
|
2085
|
+
"multiple": false,
|
|
2086
|
+
"options": [
|
|
2087
|
+
"Production",
|
|
2088
|
+
"Sandbox"
|
|
2089
|
+
],
|
|
2090
|
+
"type": "option"
|
|
2091
|
+
},
|
|
2092
|
+
"no-browser": {
|
|
2093
|
+
"name": "no-browser",
|
|
2094
|
+
"summary": "Don't auto-open the browser for OAuth authentication. The redirect URL is printed for manual use.",
|
|
1934
2095
|
"allowNo": false,
|
|
1935
2096
|
"type": "boolean"
|
|
1936
2097
|
}
|
|
1937
2098
|
},
|
|
1938
2099
|
"hasDynamicHelp": true,
|
|
1939
2100
|
"hiddenAliases": [],
|
|
1940
|
-
"id": "devops:stage:
|
|
2101
|
+
"id": "devops:stage:environment:add",
|
|
1941
2102
|
"pluginAlias": "@salesforce/plugin-devops-center",
|
|
1942
2103
|
"pluginName": "@salesforce/plugin-devops-center",
|
|
1943
2104
|
"pluginType": "core",
|
|
1944
2105
|
"strict": true,
|
|
1945
|
-
"summary": "Add a
|
|
2106
|
+
"summary": "Add a Salesforce environment to a pipeline stage.",
|
|
1946
2107
|
"enableJsonFlag": true,
|
|
1947
2108
|
"isESM": true,
|
|
1948
2109
|
"relativePath": [
|
|
@@ -1950,10 +2111,87 @@
|
|
|
1950
2111
|
"commands",
|
|
1951
2112
|
"devops",
|
|
1952
2113
|
"stage",
|
|
1953
|
-
"
|
|
2114
|
+
"environment",
|
|
1954
2115
|
"add.js"
|
|
1955
2116
|
]
|
|
1956
2117
|
},
|
|
2118
|
+
"devops:stage:environment:delete": {
|
|
2119
|
+
"aliases": [],
|
|
2120
|
+
"args": {},
|
|
2121
|
+
"description": "Removes the specified environment from the pipeline stage. The environment must belong to an inactive pipeline.",
|
|
2122
|
+
"examples": [
|
|
2123
|
+
"Delete an environment:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0XB000000000001 --environment-id 0Xe000000000001"
|
|
2124
|
+
],
|
|
2125
|
+
"flags": {
|
|
2126
|
+
"json": {
|
|
2127
|
+
"description": "Format output as json.",
|
|
2128
|
+
"helpGroup": "GLOBAL",
|
|
2129
|
+
"name": "json",
|
|
2130
|
+
"allowNo": false,
|
|
2131
|
+
"type": "boolean"
|
|
2132
|
+
},
|
|
2133
|
+
"flags-dir": {
|
|
2134
|
+
"helpGroup": "GLOBAL",
|
|
2135
|
+
"name": "flags-dir",
|
|
2136
|
+
"summary": "Import flag values from a directory.",
|
|
2137
|
+
"hasDynamicHelp": false,
|
|
2138
|
+
"multiple": false,
|
|
2139
|
+
"type": "option"
|
|
2140
|
+
},
|
|
2141
|
+
"target-org": {
|
|
2142
|
+
"char": "o",
|
|
2143
|
+
"name": "target-org",
|
|
2144
|
+
"noCacheDefault": true,
|
|
2145
|
+
"required": true,
|
|
2146
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
2147
|
+
"hasDynamicHelp": true,
|
|
2148
|
+
"multiple": false,
|
|
2149
|
+
"type": "option"
|
|
2150
|
+
},
|
|
2151
|
+
"api-version": {
|
|
2152
|
+
"description": "Override the api version used for api requests made by this command",
|
|
2153
|
+
"name": "api-version",
|
|
2154
|
+
"hasDynamicHelp": false,
|
|
2155
|
+
"multiple": false,
|
|
2156
|
+
"type": "option"
|
|
2157
|
+
},
|
|
2158
|
+
"pipeline-id": {
|
|
2159
|
+
"name": "pipeline-id",
|
|
2160
|
+
"required": true,
|
|
2161
|
+
"summary": "ID of the pipeline. Used to verify the pipeline is inactive before deleting.",
|
|
2162
|
+
"hasDynamicHelp": false,
|
|
2163
|
+
"multiple": false,
|
|
2164
|
+
"type": "option"
|
|
2165
|
+
},
|
|
2166
|
+
"environment-id": {
|
|
2167
|
+
"char": "e",
|
|
2168
|
+
"name": "environment-id",
|
|
2169
|
+
"required": true,
|
|
2170
|
+
"summary": "ID of the environment to delete.",
|
|
2171
|
+
"hasDynamicHelp": false,
|
|
2172
|
+
"multiple": false,
|
|
2173
|
+
"type": "option"
|
|
2174
|
+
}
|
|
2175
|
+
},
|
|
2176
|
+
"hasDynamicHelp": true,
|
|
2177
|
+
"hiddenAliases": [],
|
|
2178
|
+
"id": "devops:stage:environment:delete",
|
|
2179
|
+
"pluginAlias": "@salesforce/plugin-devops-center",
|
|
2180
|
+
"pluginName": "@salesforce/plugin-devops-center",
|
|
2181
|
+
"pluginType": "core",
|
|
2182
|
+
"strict": true,
|
|
2183
|
+
"summary": "Delete an environment from a DevOps Center pipeline stage.",
|
|
2184
|
+
"enableJsonFlag": true,
|
|
2185
|
+
"isESM": true,
|
|
2186
|
+
"relativePath": [
|
|
2187
|
+
"lib",
|
|
2188
|
+
"commands",
|
|
2189
|
+
"devops",
|
|
2190
|
+
"stage",
|
|
2191
|
+
"environment",
|
|
2192
|
+
"delete.js"
|
|
2193
|
+
]
|
|
2194
|
+
},
|
|
1957
2195
|
"project:deploy:pipeline:quick": {
|
|
1958
2196
|
"aliases": [],
|
|
1959
2197
|
"args": {},
|
|
@@ -2531,5 +2769,5 @@
|
|
|
2531
2769
|
]
|
|
2532
2770
|
}
|
|
2533
2771
|
},
|
|
2534
|
-
"version": "2.0.
|
|
2772
|
+
"version": "2.0.1"
|
|
2535
2773
|
}
|
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.0.
|
|
4
|
+
"version": "2.0.1",
|
|
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.0.
|
|
260
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/2.0.
|
|
259
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/2.0.1.crt",
|
|
260
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/2.0.1.sig"
|
|
261
261
|
}
|
|
262
262
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/PipelineStageUpdateResult",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"PipelineStageUpdateResult": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"success": {
|
|
9
|
+
"type": "boolean"
|
|
10
|
+
},
|
|
11
|
+
"stageId": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"name": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": ["success", "stageId", "name"],
|
|
19
|
+
"additionalProperties": false
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -19,10 +19,48 @@
|
|
|
19
19
|
"items": {
|
|
20
20
|
"type": "string"
|
|
21
21
|
}
|
|
22
|
+
},
|
|
23
|
+
"combineDetails": {
|
|
24
|
+
"anyOf": [
|
|
25
|
+
{
|
|
26
|
+
"$ref": "#/definitions/CombineDetails"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "null"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
22
32
|
}
|
|
23
33
|
},
|
|
24
34
|
"required": ["requestId", "status", "message", "promotedWorkitemIds"],
|
|
25
35
|
"additionalProperties": false
|
|
36
|
+
},
|
|
37
|
+
"CombineDetails": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": {},
|
|
40
|
+
"properties": {
|
|
41
|
+
"childWorkitemsId": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"parentWorkitemId": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"sharedComponentsList": {
|
|
51
|
+
"$ref": "#/definitions/SharedComponentsList"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"SharedComponentsList": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"additionalProperties": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"items": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"description": "Maps a comma-separated list of work item names to the components they share."
|
|
26
64
|
}
|
|
27
65
|
}
|
|
28
66
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/PromotionValidateResult",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"PromotionValidateResult": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"success": {
|
|
9
|
+
"type": "boolean"
|
|
10
|
+
},
|
|
11
|
+
"errorType": {
|
|
12
|
+
"type": ["string", "null"]
|
|
13
|
+
},
|
|
14
|
+
"errorDetails": {
|
|
15
|
+
"type": ["string", "null"]
|
|
16
|
+
},
|
|
17
|
+
"combineDetails": {
|
|
18
|
+
"anyOf": [
|
|
19
|
+
{
|
|
20
|
+
"$ref": "#/definitions/CombineDetails"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "null"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"suggestions": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"items": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": ["success", "errorType", "errorDetails", "combineDetails", "suggestions"],
|
|
35
|
+
"additionalProperties": false
|
|
36
|
+
},
|
|
37
|
+
"CombineDetails": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": {},
|
|
40
|
+
"properties": {
|
|
41
|
+
"childWorkitemsId": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"parentWorkitemId": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"sharedComponentsList": {
|
|
51
|
+
"$ref": "#/definitions/SharedComponentsList"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"SharedComponentsList": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"additionalProperties": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"items": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"description": "Maps a comma-separated list of work item names to the components they share."
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|