diff --git a/install/ci/Jenkinsfile b/install/ci/Jenkinsfile index 554471f..6841b9d 100644 --- a/install/ci/Jenkinsfile +++ b/install/ci/Jenkinsfile @@ -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' } \ No newline at end of file diff --git a/stats/Jenkinsfile b/stats/Jenkinsfile index 0098a0a..6f1ea66 100644 --- a/stats/Jenkinsfile +++ b/stats/Jenkinsfile @@ -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' }