back to simple log
This commit is contained in:
parent
ecbdbfc291
commit
2b5c7748ae
3
install/ci/Jenkinsfile
vendored
3
install/ci/Jenkinsfile
vendored
@ -1,8 +1,7 @@
|
|||||||
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 lastLog = sh(returnStdout: true, script: "git log -1").trim()
|
def lastLog = sh(returnStdout: true, script: "git log -1").trim()
|
||||||
def lastLog = sh(returnStdout: true, script: "git show -s --format='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative").trim()
|
|
||||||
if (tag) {
|
if (tag) {
|
||||||
currentBuild.displayName = "#${BUILD_NUMBER}, tag ${tag}"
|
currentBuild.displayName = "#${BUILD_NUMBER}, tag ${tag}"
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user