Skip to content

Commit

Permalink
[JENKINS-49269] Use correct maven env to buld war for ATH
Browse files Browse the repository at this point in the history
  • Loading branch information
raul-arabaolaza committed Mar 14, 2018
1 parent 122ce9a commit 36e9eb0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Jenkinsfile
Expand Up @@ -72,7 +72,10 @@ builds.ath = {
def metadataPath
dir("sources") {
checkout scm
sh "mvn -DskipTests -am -pl war package -Dmaven.repo.local=${pwd tmp: true}/m2repo -s settings-azure.xml"
withMavenEnv(["JAVA_OPTS=-Xmx1536m -Xms512m",
"MAVEN_OPTS=-Xmx1536m -Xms512m"]) {
sh "mvn -DskipTests -am -pl war package -Dmaven.repo.local=${pwd tmp: true}/m2repo -s settings-azure.xml"
}
dir("war/target") {
fileUri = "file://" + pwd() + "/jenkins.war"
}
Expand Down

0 comments on commit 36e9eb0

Please sign in to comment.