Skip to content

Instantly share code, notes, and snippets.

@fracarma
Created December 14, 2016 12:01
Show Gist options
  • Save fracarma/d9c769c5a804ee1d4df1b3bbd9b1f3d8 to your computer and use it in GitHub Desktop.
Save fracarma/d9c769c5a804ee1d4df1b3bbd9b1f3d8 to your computer and use it in GitHub Desktop.
YML file for SalesForce CI on GitLab
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
@fracarma
Copy link
Author

Ehi @javimendezona, sorry I never received a notification for your comment 😱 Did you manage to use the Gitlab variables?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment