diff options
author | Martin Stockhammer <martin_s@apache.org> | 2019-08-29 21:56:05 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2019-08-29 21:56:05 +0200 |
commit | 5c413a7e4baf5efa9b6c2d60bf8feaf21bbcf699 (patch) | |
tree | 942c11ece7f6547d8800517d287db7a8c8aebed8 /Jenkinsfile | |
parent | 32c4ada25968a30fceab5da885c893debbe24cf7 (diff) | |
download | archiva-5c413a7e4baf5efa9b6c2d60bf8feaf21bbcf699.tar.gz archiva-5c413a7e4baf5efa9b6c2d60bf8feaf21bbcf699.zip |
Adding maven path into Jenkins mvn call
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 4eeef5cef..69126491d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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" } } } |