Add withMaven closure

This commit is contained in:
Manuele Simi 2019-09-03 22:01:33 -04:00
parent cebb92951f
commit dd32572d09
1 changed files with 12 additions and 3 deletions

15
Jenkinsfile vendored
View File

@ -96,17 +96,26 @@ pipeline {
}
stage('build SmartGears components') {
steps {
buildComponents items: jsonConfig.gCube_release.Components.SmartGears.collect { "${it}" }
withMaven(jdk: "${maven_jdk}", mavenLocalRepo: "${maven_local_repo_path}", mavenSettingsFilePath: "${maven_settings_file}") {
buildComponents items: jsonConfig.gCube_release.Components.SmartGears.collect { "${it}" }
}
echo "Done with SmartGears components"
}
}
stage('build Enabling components') {
steps {
buildComponents items: jsonConfig.gCube_release.Components.Enabling.collect { "${it}" }
withMaven(jdk: "${maven_jdk}", mavenLocalRepo: "${maven_local_repo_path}", mavenSettingsFilePath: "${maven_settings_file}") {
buildComponents items: jsonConfig.gCube_release.Components.Enabling.collect { "${it}" }
}
echo "Done with Enabling components"
}
}
stage('build Data components') {
steps {
buildComponents items: jsonConfig.gCube_release.Components.Data.collect { "${it}" }
withMaven(jdk: "${maven_jdk}", mavenLocalRepo: "${maven_local_repo_path}", mavenSettingsFilePath: "${maven_settings_file}") {
buildComponents items: jsonConfig.gCube_release.Components.Data.collect { "${it}" }
}
echo "Done with Data components"
}
}
}