Update Jenkinsfile

This commit is contained in:
Telesphoreo 2023-07-01 15:34:20 -05:00 committed by GitHub
parent 671bf4bd18
commit 1a5d2bf22a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
Jenkinsfile vendored
View File

@ -18,7 +18,8 @@ pipeline {
} }
sh """ sh """
#!/bin/sh #!/bin/sh
mv \${WORKSPACE}/build/libs/Scissors-*.jar \${WORKSPACE}/build/libs/scissors-\${BRANCH_NAME}-\${BUILD_NUMBER}.jar BRANCH=\$(echo "\${BRANCH_NAME}" | sed 's/\\//_/g')
mv \${WORKSPACE}/build/libs/Scissors-*.jar \${WORKSPACE}/build/libs/scissors-\${BRANCH}-\${BUILD_NUMBER}.jar
""" """
} }
} }