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
|
returnStdout: true
|
||||||
).trim()
|
).trim()
|
||||||
}
|
}
|
||||||
currentBuild.displayName = "${version}"
|
def buildName = "${version}-b${env.BUILD_NUMBER}"
|
||||||
echo "Build name set to package.json version: ${version}"
|
currentBuild.displayName = buildName
|
||||||
|
echo "Build name set to: ${buildName}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user