integrate pittest & sonar
[sebhoss-jenkins-seed-jobs.git] / latest_parent.groovy
blob6aa83b455729317fd71ec16e809b448d1e3c8a43
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 }
8 json.each {
9 def project = it
10 folder(project.name)
11 job("${project.name}/${project.name}_with_latest_snapshot_parent") {
12 blockOnUpstreamProjects()
13 logRotator {
14 numToKeep(5)
15 daysToKeep(7)
17 scm {
18 git(project.repository)
20 triggers {
21 upstream("maven-build-process/maven-build-process_deploy_to_local-nexus", "SUCCESS")
22 cron("@daily")
24 steps {
25 maven {
26 goals("versions:update-parent")
27 properties("generateBackupPoms": false)
28 properties("allowSnapshots": true)
29 mavenInstallation("maven-latest")
30 providedGlobalSettings("talk-to-local-nexus")
33 steps {
34 maven {
35 goals("clean")
36 goals("verify")
37 mavenInstallation("maven-latest")
38 providedGlobalSettings("talk-to-local-nexus")
41 publishers {
42 irc {
43 strategy("ALL")
44 notificationMessage("SummaryOnly")
48 job("${project.name}/${project.name}_with_latest_stable_parent") {
49 blockOnUpstreamProjects()
50 logRotator {
51 numToKeep(5)
52 daysToKeep(7)
54 scm {
55 git(project.repository)
57 triggers {
58 cron("@daily")
60 steps {
61 maven {
62 goals("versions:update-parent")
63 properties("generateBackupPoms": false)
64 mavenInstallation("maven-latest")
65 providedGlobalSettings("talk-to-local-nexus")
68 steps {
69 maven {
70 goals("clean")
71 goals("verify")
72 mavenInstallation("maven-latest")
73 providedGlobalSettings("talk-to-local-nexus")
76 publishers {
77 irc {
78 strategy("ALL")
79 notificationMessage("SummaryOnly")