]> source.dussan.org Git - archiva.git/commitdiff
Adding maven path into Jenkins mvn call
authorMartin Stockhammer <martin_s@apache.org>
Thu, 29 Aug 2019 19:56:05 +0000 (21:56 +0200)
committerMartin Stockhammer <martin_s@apache.org>
Thu, 29 Aug 2019 19:56:05 +0000 (21:56 +0200)
Jenkinsfile

index 4eeef5cefc170043f50aca278882855821e9b6c9..69126491dbb820e5a33bb57370b9ee80112c2287 100644 (file)
@@ -95,7 +95,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 -T3"
+                                sh "export PATH=$MVN_CMD_DIR:$PATH && mvn clean deploy -B -U -e -fae -Dmaven.compiler.fork=true -Pci-build -T3"
                             }
                 }
             }
@@ -136,7 +136,7 @@ pipeline {
                                           options: publishers
                                 )
                                         {
-                                            sh "mvn clean install -U -B -e -fae -Dmaven.compiler.fork=true -Pci-build -T3"
+                                            sh "export PATH=$MVN_CMD_DIR:$PATH && mvn clean install -U -B -e -fae -Dmaven.compiler.fork=true -Pci-build -T3"
                                         }
                             }
                         }