Created
July 15, 2021 04:01
-
-
Save msrivastav13/9cadf45ab8666747ee563a627afe8e84 to your computer and use it in GitHub Desktop.
Changeset in Salesforce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Retrieve From ChangeSet", | |
"type": "shell", | |
"command": "sfdx", | |
"args": [ | |
"force:source:retrieve", | |
"-n", | |
"${input:changesetname}", | |
"-u", | |
"${input:sourceenvironment}" | |
], | |
"group": "build", | |
"problemMatcher": [], | |
"presentation": { | |
"echo": true, | |
"reveal": "always", | |
"focus": false, | |
"panel": "new", | |
"showReuseMessage": true, | |
"clear": false | |
} | |
}, | |
{ | |
"label": "Deploy ChangeSet", | |
"type": "shell", | |
"command": "sfdx", | |
"args": [ | |
"force:source:deploy", | |
"-p", | |
"${input:changesetname}/main/default", | |
"-u", | |
"${input:targetenvironment}" | |
], | |
"group": "build", | |
"problemMatcher": [], | |
"presentation": { | |
"echo": true, | |
"reveal": "always", | |
"focus": false, | |
"panel": "new", | |
"showReuseMessage": true, | |
"clear": false | |
} | |
} | |
], | |
"inputs": [ | |
{ | |
"id": "changesetname", | |
"description": "Enter Changeset Name:", | |
"type": "promptString" | |
}, | |
{ | |
"id": "sourceenvironment", | |
"description": "Select Environment To Retrieve", | |
"type": "pickString", | |
"options": [ | |
"dev1", | |
"dev4", | |
"uat" | |
] | |
}, | |
{ | |
"id": "targetenvironment", | |
"description": "Select Environment To Deploy", | |
"type": "pickString", | |
"options": [ | |
"dev1", | |
"dev4", | |
"uat" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I like it