You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2025. It is now read-only.
@@ -751,6 +752,10 @@ We recommend that all users take advantage of the automatically created `Staging
751
752
752
753
This is the same parameter as the one described in the [above section](#description-parameter), and simply allows you to override the description that will be used for the promoted release. If unspecified, the new release will inherit the description from the release being promoted.
753
754
755
+
### Label parameter
756
+
757
+
This optional parameter allows you to pick the specified label from the source deployment and promote it to the destination deployment. If unspecified, the latest release on the source deployment will be promoted.
758
+
754
759
### Disabled parameter
755
760
756
761
This is the same parameter as the one described in the [above section](#disabled-parameter), and simply allows you to override the value of the disabled flag that will be used for the promoted release. If unspecified, the new release will inherit the disabled property from the release being promoted.
log("Successfully promoted the \""+command.sourceDeploymentName+"\" deployment of the \""+command.appName+"\" app to the \""+command.destDeploymentName+"\" deployment.");
1088
+
log("Successfully promoted "+(command.label!==null ? "\""+command.label+"\" of " : "")+"the \""+command.sourceDeploymentName+"\" deployment of the \""+command.appName+"\" app to the \""+command.destDeploymentName+"\" deployment.");
.example("promote MyApp Staging Production","Promotes the latest release within the \"Staging\" deployment of \"MyApp\" to \"Production\"")
357
357
.example("promote MyApp Staging Production --des \"Production rollout\" -r 25","Promotes the latest release within the \"Staging\" deployment of \"MyApp\" to \"Production\", with an updated description, and targeting only 25% of the users")
358
358
.option("description",{alias: "des",default: null,demand: false,description: "Description of the changes made to the app with this release. If omitted, the description from the release being promoted will be used.",type: "string"})
359
+
.option("label",{alias: "l",default: null,demand: false,description: "Label of the source release that will be taken. If omitted, the latest release being promoted will be used.",type: "string"})
359
360
.option("disabled",{alias: "x",default: null,demand: false,description: "Specifies whether this release should be immediately downloadable. If omitted, the disabled attribute from the release being promoted will be used.",type: "boolean"})
360
361
.option("mandatory",{alias: "m",default: null,demand: false,description: "Specifies whether this release should be considered mandatory. If omitted, the mandatory property from the release being promoted will be used.",type: "boolean"})
361
362
.option("noDuplicateReleaseError",{default: false,demand: false,description: "When this flag is set, promoting a package that is identical to the latest release on the target deployment will produce a warning instead of an error",type: "boolean"})
@@ -751,6 +752,7 @@ function createCommand(): cli.ICommand {
0 commit comments