edit description
This commit is contained in:
parent
3d902f7a67
commit
9bccd1f0a1
6
install/ci/Jenkinsfile
vendored
6
install/ci/Jenkinsfile
vendored
@ -1,6 +1,8 @@
|
|||||||
stage('install:ci') {
|
stage('install:ci') {
|
||||||
def tag = sh(returnStdout: true, script: "git tag --contains").trim()
|
def tag = sh(returnStdout: true, script: "git tag --contains").trim()
|
||||||
def branchName = sh(returnStdout: true, script: "git rev-parse --abbrev-ref HEAD").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()
|
def lastLog = sh(returnStdout: true, script: "git log -1").trim()
|
||||||
if (tag) {
|
if (tag) {
|
||||||
currentBuild.displayName = "#${BUILD_NUMBER}, tag ${tag}"
|
currentBuild.displayName = "#${BUILD_NUMBER}, tag ${tag}"
|
||||||
@ -8,7 +10,9 @@ stage('install:ci') {
|
|||||||
currentBuild.displayName = "#${BUILD_NUMBER}, branch ${branchName}"
|
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}<br />${commitMsg}"
|
||||||
|
// currentBuild.description = "#${BUILD_NUMBER}, branch ${branchName}, tag ${tag ? tag : 'no tag'}\n\n${lastLog}"
|
||||||
echo 'starting installing'
|
echo 'starting installing'
|
||||||
sh "pwd"
|
sh "pwd"
|
||||||
sh 'npm ci'
|
sh 'npm ci'
|
||||||
|
Loading…
Reference in New Issue
Block a user