Skip to content

Instantly share code, notes, and snippets.

@aquiladev
Created May 20, 2018 10:28
Show Gist options
  • Save aquiladev/d774f6236f73c17095a084b2eccb814b to your computer and use it in GitHub Desktop.
Save aquiladev/d774f6236f73c17095a084b2eccb814b to your computer and use it in GitHub Desktop.
configFileProvider([configFile(fileId: '912637a4-2e56-4ee5-8ad9-caf59a3029a9', variable: 'VAR1')]) {
sh '''
value=`cat $VAR1`
value="$value\nBRANCH_NAME=$BRANCH_NAME"
value="$value\nGIT_COMMIT=$GIT_COMMIT"
echo $value | tee ./build/.env
'''
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment