forked from trailheadapps/lwc-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
env-devcicd.groovy
21 lines (19 loc) · 1.2 KB
/
env-devcicd.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
env.DB_URL="hello"
env.DB_URL2="hello2"
//--------------------------------------- Salesforce Org Environment variable
env.SF_CONSUMER_KEY="3MVG9Kip4IKAZQEW8SIBzWoPWNyBHn8lKJuXVntaUke8zaC2caLhEvPrCfv3_SBfKSfLxatZnXeiIJBsuKH9z"
env.SF_USERNAME="chenda.mok@gmail.com.devcicd"
//env.SERVER_KEY_CREDENTIALS_ID="${env.WORKSPACE}/certificates/devhub/server.pass.key"
env.SERVER_KEY_CREDENTIALS_ID='/var/jenkins_home/workspace/salesforce_demo_org/certificates/devhub/server.key'
env.DEPLOYDIR="src"
// https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/forcemigrationtool_deploy.htm#ant_deploy_testLevel
// NoTestRun RunSpecifiedTests RunLocalTests RunAllTestsInOrg
env.TEST_LEVEL="NoTestRun"
env.SF_INSTANCE_URL="https://login.salesforce.com"
env.ALIAS="devcicd"
// The value must match folderName_ServiceName_1 from your docker-compose file
env.DOCKER_SFORG="sfdx-jenkins-org_sforg_1"
// https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ci_jenkins_config_env.htm
// You can also optionally set the SFDX_AUTOUPDATE_DISABLE variable to true to disable auto-update of Salesforce CLI.
// CLI auto-update can interfere with the execution of a Jenkins job.
env.SFDX_AUTOUPDATE_DISABLE=true