back to simple log

This commit is contained in:
Primakov Alexandr Alexandrovich 2024-04-11 13:10:30 +03:00
parent ecbdbfc291
commit 2b5c7748ae

View File

@ -1,8 +1,7 @@
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 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()
def lastLog = sh(returnStdout: true, script: "git log -1").trim()
if (tag) {
currentBuild.displayName = "#${BUILD_NUMBER}, tag ${tag}"
} else {