Skip to content

Instantly share code, notes, and snippets.

@tabrindle
Last active May 22, 2017 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tabrindle/558b09437c8ce8b65641b6fb30c99135 to your computer and use it in GitHub Desktop.
Save tabrindle/558b09437c8ce8b65641b6fb30c99135 to your computer and use it in GitHub Desktop.
Jenkins notes
- declaritive pipeline uses sh
- inject PATH overrides in jenkinsfile environment property
- can be per file, per stage
- useful for node version - nvm doesn't always work, pollutes log.
```
stage('Build') {
environment {
PATH='/usr/opt/someshit:$PATH'
}
steps {
sh 'make install clean config-qa build archive-debug-ci'
}
}
```
- Use per node PATH vars
- ex. $HOME/.nvm/versions/node/v6.10.3/bin:$HOME/.fastlane/bin:$HOME/.yarn/bin:/opt/Sencha/Cmd:/usr/local/share/android-sdk/tools:/usr/local/share/android-sdk/platform-tools:/usr/local/bin:/usr/bin:/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment