Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Commit

Permalink
Modify how BUILD_URL is used
Browse files Browse the repository at this point in the history
  • Loading branch information
edjubuh committed Feb 7, 2017
1 parent d787d2b commit f81d404
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ stage('Build') {
checkout scm
sh 'git describe --tags > version'
build_ver = readFile 'version'
build_ver = build_ver.replaceAll("\\s","")
println "Building CLI at version ${build_ver}"
}
stage('Build') {
Expand Down Expand Up @@ -45,8 +46,10 @@ stage('Build') {
checkout scm
bat 'git describe --tags > version'
build_ver = readFile 'version'
build_ver = build_ver.replaceAll("\\s","")
bat 'git describe --tags --abbrev=0 > inst_version'
inst_ver = readFile 'inst_version'
inst_ver = inst_ver.replaceAll("\\s","")
}
stage('Build') {
venv.run 'pip3 install --upgrade -r requirements.txt'
Expand All @@ -73,7 +76,7 @@ stage('Build') {
${advinst} /build pros-windows.aip
"""
bat """
${advinst} /edit pros-updates.aip /NewUpdate output\\pros-win.exe -name "PROS${inst_ver}" -display_name "PROS ${build_ver}" -url "${BUILD_URL}artifact/output/windows_updates.txt"
${advinst} /edit pros-updates.aip /NewUpdate output\\pros-win.exe -name "PROS${inst_ver}" -display_name "PROS ${build_ver}" -url "${env.BUILD_URL}artifact/output/pros-win.exe"
${advinst} /build pros-updates.aip
"""
archiveArtifacts artifacts: 'output/*', fingerprint: true
Expand Down

0 comments on commit f81d404

Please sign in to comment.