move display name 2 install stage

This commit is contained in:
Primakov Alexandr Alexandrovich 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'
}

7
stats/Jenkinsfile vendored
View File

@ -1,16 +1,9 @@
stage('stats') {
def tag = sh(returnStdout: true, script: "git tag --contains").trim()
echo 'checking node and npm versions'
sh 'node -v'
sh 'npm -v'
sh 'ls -a'
sh 'df -h'
sh 'free -m'
if (tag) {
currentBuild.displayName = "#${BUILD_NUMBER}, tag${tag}"
} else {
currentBuild.displayName = "#${BUILD_NUMBER}, branch ${BRANCH}"
}
currentBuild.description = "#${BUILD_NUMBER}, branch ${BRANCH}, tag${tag}"
// sh 'vmstat -s'
}