Created
December 14, 2016 12:01
-
-
Save fracarma/d9c769c5a804ee1d4df1b3bbd9b1f3d8 to your computer and use it in GitHub Desktop.
YML file for SalesForce CI on GitLab
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
image: mhart/alpine-node:7.2.0 | |
before_script: | |
- npm install -g jsforce-metadata-tools | |
master: | |
stage: deploy | |
environment: Production | |
only: | |
- master | |
script: | |
- jsforce-deploy -u $USERNAME -p $PASSWORD$TOKEN -D $CI_PROJECT_DIR/src -l $LOGIN_URL --rollbackOnError true --testLevel $TEST_LEVEL --pollTimeout $POLL_TIMEOUT | |
branches: | |
stage: deploy | |
environment: $CI_BUILD_REF_NAME | |
only: | |
- branches | |
except: | |
- master | |
- pre | |
- merge | |
script: | |
- jsforce-deploy -u $USERNAME -p $PASSWORD$TOKEN -D $CI_PROJECT_DIR/src -l $LOGIN_URL --rollbackOnError true --testLevel $BRANCH_TEST_LEVEL --pollTimeout $POLL_TIMEOUT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ehi @javimendezona, sorry I never received a notification for your comment 😱 Did you manage to use the Gitlab variables?