11 lines
392 B
Groovy
11 lines
392 B
Groovy
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'
|
|
} |