Skip to content

Commit

Permalink
Jenkinsfile explicitly refers to external config files
Browse files Browse the repository at this point in the history
The EF's new Jenkins infrastructure needs a change in the Jenkinsfiles:
The external Maven configuration files have to be explicitly declared
now.
  • Loading branch information
mkarg committed Feb 11, 2019
1 parent 974e9c2 commit 4514730
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Jenkinsfile
Expand Up @@ -19,11 +19,16 @@ pipeline {
}
}
steps {
dir ('jaxrs-api') {
sh "$MVN deploy"
}
dir ('examples') {
sh "$MVN deploy"
configFileProvider([
configFile(fileId: 'a79c37a7-bfd9-4699-8077-f992027b2c1b', targetLocation: '/home/jenkins/.m2/settings.xml'),
configFile(fileId: 'b78b4e15-215f-42bc-81ac-53cd3e2ef708', targetLocation: '/home/jenkins/.m2/')
]) {
dir ('jaxrs-api') {
sh "$MVN deploy"
}
dir ('examples') {
sh "$MVN deploy"
}
}
}
}
Expand Down

0 comments on commit 4514730

Please sign in to comment.