Enhance build name format in Jenkinsfile to include build number for better traceability
Some checks reported errors
farmcontrol/farmcontrol-ui/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
farmcontrol/farmcontrol-ui/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
c613bdeff7
commit
242f67f47e
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -95,8 +95,9 @@ def setBuildNameFromPackageVersion() {
|
||||
returnStdout: true
|
||||
).trim()
|
||||
}
|
||||
currentBuild.displayName = "${version}"
|
||||
echo "Build name set to package.json version: ${version}"
|
||||
def buildName = "${version}-b${env.BUILD_NUMBER}"
|
||||
currentBuild.displayName = buildName
|
||||
echo "Build name set to: ${buildName}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user