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:23:21 UTC

[maven] branch reproducible updated: removed commit id for windows (+cleanup)

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 a8a24f9  removed commit id for windows (+cleanup)
a8a24f9 is described below

commit a8a24f95cf36d6b987611124c42099d8c2bfa283
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Tue Sep 24 23:23:15 2019 +0200

    removed commit id for windows (+cleanup)
---
 Jenkinsfile | 26 ++------------------------
 1 file changed, 2 insertions(+), 24 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 7234357..ba1ab19 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -26,30 +26,9 @@ def runITsOses = ['linux', 'windows']
 def runITsJdks = ['7', '8', '11','12']
 def runITsMvn = '3.6.0'
 def runITscommand = "mvn clean install -Prun-its,embedded -B -U -V" // -DmavenDistro=... -Dmaven.test.failure.ignore=true
-def tests
 
 try {
 
-def osNode = jenkinsEnv.labelForOS(buildOs) 
-node(jenkinsEnv.nodeSelection(osNode)) {
-    dir('build') {
-        stage('Checkout') {
-            checkout scm
-        }
-
-        def WORK_DIR=pwd()
-        def MAVEN_GOAL='verify'
-
-        stage('Configure deploy') {
-           if (env.BRANCH_NAME == 'master'){
-               MAVEN_GOAL='deploy'
-           }
-        }
-
-        tests = resolveScm source: [$class: 'GitSCMSource', credentialsId: '', id: '_', remote: 'https://gitbox.apache.org/repos/asf/maven.git', traits: [[$class: 'jenkins.plugins.git.traits.BranchDiscoveryTrait'], [$class: 'GitToolSCMSourceTrait', gitTool: 'Default']]], targets: [BRANCH_NAME, 'master']
-    }
-}
-
 Map runITsTasks = [:]
 for (String os in runITsOses) {
     for (def jdk in runITsJdks) {
@@ -75,7 +54,7 @@ for (String os in runITsOses) {
                 def WORK_DIR=pwd()
                 stage("${stageLabel}") {
                     echo "NODE_NAME = ${env.NODE_NAME}"
-                    checkout tests
+                    checkout scm
                     withMaven(jdk: jdkName, maven: mvnName, mavenLocalRepo:"${WORK_DIR}/.repository", options:[
                         artifactsPublisher(disabled: false),
                         junitPublisher(ignoreAttachments: false),
@@ -89,8 +68,7 @@ for (String os in runITsOses) {
                         String commitId = sh(returnStdout: true, script: 'git rev-parse HEAD')
                         sh cmd.join(' ') + "-${commitId}"
                       } else {
-                        String commitId = bat(returnStdout: true, script: 'git rev-parse HEAD')
-                        bat cmd.join(' ') + "-${commitId}"
+                        bat cmd.join(' ')
                       }
                     }
                 }