]> source.dussan.org Git - archiva.git/commitdiff
Adding flag for using local jenkins
authorMartin Stockhammer <martin_s@apache.org>
Sun, 17 Nov 2019 20:16:39 +0000 (21:16 +0100)
committerMartin Stockhammer <martin_s@apache.org>
Sun, 17 Nov 2019 20:36:59 +0000 (21:36 +0100)
Jenkinsfile

index d53c044463630d7b3c28f3734cd89b257e51b335..c8100e9d9521b3ca25c6c0d00c9d278c265b2fa6 100644 (file)
@@ -40,7 +40,10 @@ publishers = [artifactsPublisher(disabled: false),
               junitPublisher(disabled: false, ignoreAttachments: false),
               pipelineGraphPublisher(disabled: false),mavenLinkerPublisher(disabled: false)]
 
-INTEGRATION_PIPELINE = "Archiva-IntegrationTests-Gitbox"
+cmdLine = (env.NONAPACHEORG_RUN != 'y' && env.BRANCH_NAME == 'master') ? "clean deploy" : "clean install"
+
+
+        INTEGRATION_PIPELINE = "Archiva-IntegrationTests-Gitbox"
 
 pipeline {
     agent {
@@ -103,7 +106,7 @@ pipeline {
                                 // -Dmaven.compiler.fork=true: Do compile in a separate forked process
                                 // -Dmaven.test.failure.ignore=true: Do not stop, if some tests fail
                                 // -Pci-build: Profile for CI-Server
-                                sh "mvn clean deploy -B -U -e -fae -Dmaven.compiler.fork=true -Pci-build -T${THREADS}"
+                                sh "mvn ${cmdLine} -B -U -e -fae -Dmaven.compiler.fork=true -Pci-build -T${THREADS}"
                             }
                 }
             }