Skip to content

Commit

Permalink
Set Jenkins build to use package.json version as prefix of name
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed Apr 5, 2017
1 parent 221df1f commit 3a13bd0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
library 'pipeline-library'

timestamps {
node('osx || linux') {
stage('Checkout') {
checkout scm
def packageVersion = jsonParse(readFile('package.json'))['version']
currentBuild.displayName = "#${packageVersion}-${currentBuild.number}"
}

nodejs(nodeJSInstallationName: 'node 6.9.5') {
Expand Down

0 comments on commit 3a13bd0

Please sign in to comment.