You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2019/09/24 21:28:25 UTC
[maven] branch reproducible updated: tweak git commit id on Windows
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch reproducible
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/reproducible by this push:
new f7b2b7c tweak git commit id on Windows
f7b2b7c is described below
commit f7b2b7c24c12472de3a2a42970706e8d9532afbd
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Tue Sep 24 23:28:19 2019 +0200
tweak git commit id on Windows
---
Jenkinsfile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index ba1ab19..10ad0a4 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -48,7 +48,7 @@ for (String os in runITsOses) {
}
String stageId = "${os}-jdk${jdk}"
- String stageLabel = "Rebuild ${os.capitalize()} Java ${jdk}"
+ String stageLabel = "${os.capitalize()} Java ${jdk}"
runITsTasks[stageId] = {
node(jenkinsEnv.nodeSelection(osLabel)) {
def WORK_DIR=pwd()
@@ -68,7 +68,8 @@ for (String os in runITsOses) {
String commitId = sh(returnStdout: true, script: 'git rev-parse HEAD')
sh cmd.join(' ') + "-${commitId}"
} else {
- bat cmd.join(' ')
+ String commitId = bat(returnStdout: true, script: 'git rev-parse HEAD').tokenize(' ')[-1]
+ bat cmd.join(' ') + "-${commitId}"
}
}
}