jenkins-scripts/stats/Jenkinsfile

17 lines
483 B
Plaintext
Raw Normal View History

2020-03-02 22:35:26 +03:00
stage('stats') {
2024-04-11 12:45:45 +03:00
def tag = sh(returnStdout: true, script: "git tag --contains").trim()
2020-04-25 18:15:35 +03:00
echo 'checking node and npm versions'
2020-03-02 22:47:41 +03:00
sh 'node -v'
sh 'npm -v'
2020-09-26 14:28:11 +03:00
sh 'ls -a'
sh 'df -h'
sh 'free -m'
2024-04-11 12:45:45 +03:00
if (tag) {
currentBuild.displayName = "#${BUILD_NUMBER}, tag${tag}"
} else {
currentBuild.displayName = "#${BUILD_NUMBER}, branch ${BRANCH}"
}
currentBuild.description = "#${BUILD_NUMBER}, branch ${BRANCH}, tag${tag}"
2020-04-25 18:15:35 +03:00
// sh 'vmstat -s'
2020-03-02 22:35:26 +03:00
}