Last active
May 22, 2017 17:03
-
-
Save tabrindle/558b09437c8ce8b65641b6fb30c99135 to your computer and use it in GitHub Desktop.
Jenkins notes
This file contains hidden or 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
- 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