Skip to content

Instantly share code, notes, and snippets.

@dasgoll
Created May 10, 2020 05: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 dasgoll/4d5bc427f9db467c40c0351ceb69450b to your computer and use it in GitHub Desktop.
Save dasgoll/4d5bc427f9db467c40c0351ceb69450b to your computer and use it in GitHub Desktop.
Jenkins upload file
mkdir /tmp/{stg,prod}
Choice Parameter
Name = Environment
Choices
stg
prod
File Parameter
File location = file
cp file /tmp/${Environment}
rm -rf ${WORKSPACE}/file
rm -rf ${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_NUMBER}/fileParameters/file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment