build display name

This commit is contained in:
Primakov Alexandr Alexandrovich 2024-04-11 12:45:45 +03:00
parent a3b99ccd20
commit b39f5d8708

7
stats/Jenkinsfile vendored
View File

@ -1,9 +1,16 @@
stage('stats') { stage('stats') {
def tag = sh(returnStdout: true, script: "git tag --contains").trim()
echo 'checking node and npm versions' echo 'checking node and npm versions'
sh 'node -v' sh 'node -v'
sh 'npm -v' sh 'npm -v'
sh 'ls -a' sh 'ls -a'
sh 'df -h' sh 'df -h'
sh 'free -m' 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' // sh 'vmstat -s'
} }