move display name 2 install stage

This commit is contained in:
2024-04-11 12:47:41 +03:00
parent b39f5d8708
commit e1b4dcfb51
2 changed files with 7 additions and 7 deletions

View File

@@ -1,4 +1,11 @@
stage('install:ci') {
def tag = sh(returnStdout: true, script: "git tag --contains").trim()
if (tag) {
currentBuild.displayName = "#${BUILD_NUMBER}, tag${tag}"
} else {
currentBuild.displayName = "#${BUILD_NUMBER}, branch ${BRANCH}"
}
currentBuild.description = "#${BUILD_NUMBER}, branch ${BRANCH}, tag${tag}"
echo 'starting installing'
sh 'npm ci'
}