1 import groovy
.json
.JsonSlurper
3 def projectCatalog
= new File("/var/git/stable/jenkins-jobs-setup/projects.json")
4 def slurper
= new JsonSlurper()
5 def jsonText
= projectCatalog
.getText()
6 def json
= slurper
.parseText(jsonText
).findAll
{ it
.mbp
}
11 job("${project.name}/${project.name}_with_latest_snapshot_parent") {
12 blockOnUpstreamProjects()
18 git(project
.repository
)
21 upstream("maven-build-process/maven-build-process_deploy_to_local-nexus", "SUCCESS")
26 goals("versions:update-parent")
27 properties("generateBackupPoms": false)
28 properties("allowSnapshots": true)
29 mavenInstallation("maven-latest")
30 providedGlobalSettings("talk-to-local-nexus")
37 mavenInstallation("maven-latest")
38 providedGlobalSettings("talk-to-local-nexus")
44 notificationMessage("SummaryOnly")
48 job("${project.name}/${project.name}_with_latest_stable_parent") {
49 blockOnUpstreamProjects()
55 git(project
.repository
)
62 goals("versions:update-parent")
63 properties("generateBackupPoms": false)
64 mavenInstallation("maven-latest")
65 providedGlobalSettings("talk-to-local-nexus")
72 mavenInstallation("maven-latest")
73 providedGlobalSettings("talk-to-local-nexus")
79 notificationMessage("SummaryOnly")