Jenkinsfile: Implement versioning.

This commit is contained in:
/dev/urandom 2016-09-13 02:55:08 +02:00
parent ebad081b04
commit 7dd069fbc9
No known key found for this signature in database
GPG Key ID: 41322B973E0F295E

10
Jenkinsfile vendored
View File

@ -101,6 +101,16 @@ def doUnitTests(name) {
}
}
// Change build name to correct version
stage "Versioning"
node("windows") {
checkout scm
version = sh(returnStdout: true, script: 'premake5 version').split("\r?\n")[1]
currentBuild.setDisplayName "$version (#${env.BUILD_NUMBER})"
}
// For each available configuration generate a normal build and a unit test build.
stage "Build"
def executions = [:]