17 lines
483 B
Groovy
17 lines
483 B
Groovy
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'
|
|
}
|