diff --git a/install/ci/Jenkinsfile b/install/ci/Jenkinsfile index 76b81aa..ee22993 100644 --- a/install/ci/Jenkinsfile +++ b/install/ci/Jenkinsfile @@ -1,6 +1,8 @@ stage('install:ci') { def tag = sh(returnStdout: true, script: "git tag --contains").trim() def branchName = sh(returnStdout: true, script: "git rev-parse --abbrev-ref HEAD").trim() + def commit = sh(returnStdout: true, script: 'git log -1 --oneline').trim() + String commitMsg = commit.substring( commit.indexOf(' ') ).trim() def lastLog = sh(returnStdout: true, script: "git log -1").trim() if (tag) { currentBuild.displayName = "#${BUILD_NUMBER}, tag ${tag}" @@ -8,7 +10,9 @@ stage('install:ci') { currentBuild.displayName = "#${BUILD_NUMBER}, branch ${branchName}" } - currentBuild.description = "#${BUILD_NUMBER}, branch ${branchName}, tag ${tag ? tag : 'no tag'}\n\n${lastLog}" + String author = sh(returnStdout: true, script: "git log -1 --pretty=format:'%an'").trim() + currentBuild.description = "${author}
${commitMsg}" + // currentBuild.description = "#${BUILD_NUMBER}, branch ${branchName}, tag ${tag ? tag : 'no tag'}\n\n${lastLog}" echo 'starting installing' sh "pwd" sh 'npm ci'