aboutsummaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2019-08-29 21:56:05 +0200
committerMartin Stockhammer <martin_s@apache.org>2019-08-29 21:56:05 +0200
commit5c413a7e4baf5efa9b6c2d60bf8feaf21bbcf699 (patch)
tree942c11ece7f6547d8800517d287db7a8c8aebed8 /Jenkinsfile
parent32c4ada25968a30fceab5da885c893debbe24cf7 (diff)
downloadarchiva-5c413a7e4baf5efa9b6c2d60bf8feaf21bbcf699.tar.gz
archiva-5c413a7e4baf5efa9b6c2d60bf8feaf21bbcf699.zip
Adding maven path into Jenkins mvn call
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile4
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"
}
}
}