Created
May 10, 2020 05:03
-
-
Save dasgoll/4d5bc427f9db467c40c0351ceb69450b to your computer and use it in GitHub Desktop.
Jenkins upload file
This file contains 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
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