summaryrefslogtreecommitdiff
path: root/vars/buildPackage.groovy
diff options
context:
space:
mode:
Diffstat (limited to 'vars/buildPackage.groovy')
-rw-r--r--vars/buildPackage.groovy4
1 files changed, 4 insertions, 0 deletions
diff --git a/vars/buildPackage.groovy b/vars/buildPackage.groovy
index f2a72dc4..801a2b33 100644
--- a/vars/buildPackage.groovy
+++ b/vars/buildPackage.groovy
@@ -75,6 +75,10 @@ def call(description, pkgList) {
steps {
script {
checkout scm
+
+ def commitId = sh(returnStdout: true, script: 'git rev-parse --short=11 HEAD').trim()
+ currentBuild.description = sprintf('Git SHA1: %s', commitId[-11..-1])
+
pkgList.each { pkg ->
dir(pkg.name) {
checkout([$class: 'GitSCM',