Merge "Enable Heat for {project}-csit-verify-3node-{functionality}"
[releng/builder.git] / jjb / autorelease / autorelease-templates.yaml
1 # Autorelease build jobs
2
3 - job-template:
4     name: 'autorelease-release-{stream}'
5
6     project-type: freestyle
7     node: centos7-autorelease-4c-16g
8     jdk: '{jdk}'
9
10     properties:
11         - opendaylight-infra-properties:
12             build-days-to-keep: '30'
13
14     parameters:
15         - maven-exec:
16             maven-version: 'mvn33'
17         - opendaylight-infra-parameters:
18             project: '{project}'
19             branch: '{branch}'
20             refspec: 'refs/heads/{branch}'
21             artifacts: '{archive-artifacts}'
22         - autorelease-release-tag:
23             release-tag: '{next-release-tag}'
24         - autorelease-release-branch:
25             release-branch: '{branch}'
26
27     scm:
28         - git:
29             credentials-id: 'opendaylight-jenkins-ssh'
30             url: '$GIT_BASE'
31             refspec: '$GERRIT_REFSPEC'
32             branches:
33                 - '$GERRIT_BRANCH'
34             choosing-strategy: 'gerrit'
35             skip-tag: true
36             submodule:
37                 recursive: true
38                 timeout: 60
39
40     wrappers:
41         - opendaylight-infra-wrappers:
42             build-timeout: '1440'
43
44     triggers:
45         - timed: 'H 0 * * *'
46
47     builders:
48         # force jenkins install of maven version before any shell scripts use it
49         - maven-target:
50             maven-version: 'mvn33'
51             goals: '-version'
52             settings: 'autorelease-settings'
53             settings-type: cfp
54             global-settings: 'odl-global-settings'
55             global-settings-type: cfp
56         - wipe-local-maven-repo
57         - jacoco-nojava-workaround
58         - shell: "./scripts/list-project-dependencies.sh"
59         - autorelease-determine-merge-order
60         - autorelease-cfp:
61             autorelease-settings: 'autorelease-settings'
62             odl-global-settings: 'odl-global-settings'
63         - autorelease-generate-taglist
64         - autorelease-distribute-taglist
65         - autorelease-generate-release-patches
66         # In a perfect world projects should be releasing separately and we consume them
67         # via a project that pulls the release bits from each project from Nexus.
68         # Keep the patches compatible with that ideal, but apply an edit
69         # to enable building in a single maven reactor afterwards.
70         - autorelease-fix-relative-paths
71         - maven-target:
72               maven-version: 'mvn33'
73               pom: 'pom.xml'
74               goals: 'clean deploy -V -B -Pintegrationtests,docs,repoBuild -Djenkins -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -DaltDeploymentRepository=staging::default::file:hide/from/pom/files/stage'
75               java-opts:
76                 - '-Xmx10g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
77               settings: 'autorelease-settings'
78               settings-type: cfp
79               global-settings: 'odl-global-settings'
80               global-settings-type: cfp
81         - autorelease-maven-deploy
82         - autorelease-get-integration-test-variables
83         - autorelease-maven-sources:
84             maven-version: 'mvn33'
85             settings: 'autorelease-settings'
86             global-settings: 'odl-global-settings'
87         - autorelease-maven-sources-post-process
88         - autorelease-sys-stats
89         - shell: |
90             mkdir -p archives/
91             cp *.log *.prop $_
92
93     publishers:
94         - email-notification:
95             email-recipients: '{email-recipients}'
96             email-prefix: '[autorelease]'
97         - trigger-parameterized-builds:
98             - project: 'integration-distribution-test-{integration-test}'
99               condition: UNSTABLE_OR_BETTER
100               property-file: variables.jenkins-trigger
101               fail-on-missing: true
102         - opendaylight-infra-shiplogs:
103             maven-version: 'mvn33'
104
105 - job-template:
106     name: 'autorelease-project-report-{stream}'
107
108     project-type: freestyle
109     node: centos7-java-builder-2c-8g
110
111     properties:
112         - opendaylight-infra-properties:
113             build-days-to-keep: '{build-days-to-keep}'
114
115     parameters:
116         - opendaylight-infra-parameters:
117             project: '{project}'
118             branch: '{branch}'
119             refspec: 'refs/heads/{branch}'
120             artifacts: '{archive-artifacts}'
121         - string:
122             name: REPORT_DIR
123             default: '$WORKSPACE/project-reports'
124             description: "The directory containing project reports"
125
126     scm:
127         - git:
128             credentials-id: 'opendaylight-jenkins-ssh'
129             url: '$GIT_BASE'
130             refspec: '$GERRIT_REFSPEC'
131             branches:
132                 - '$GERRIT_BRANCH'
133             choosing-strategy: 'gerrit'
134             skip-tag: true
135             submodule:
136                 recursive: true
137
138     wrappers:
139         - opendaylight-infra-wrappers:
140             build-timeout: '30'
141
142     triggers:
143         - timed: '0 0 * * 0'
144
145     builders:
146         - shell: 'echo "DATE=`date +%Y-%m-%d`" > $WORKSPACE/variables.prop'
147         - inject:
148             properties-file: variables.prop
149         - autorelease-generate-project-report
150         - shell: "./scripts/list-project-dependencies.sh"
151         - autorelease-determine-merge-order
152         - autorelease-sys-stats
153
154     publishers:
155         - email-ext:
156             attachments: 'project-reports/*.log'
157             recipients: 'skitt@redhat.com thanh.ha@linuxfoundation.org'
158             reply-to: dev@lists.opendaylight.org
159             content-type: default
160             subject: '[releng] ODL {stream} project report for ${{ENV, var="DATE"}}'
161             body: |
162                 This is a project report generated on $DATE listing the commit
163                 history of ODL projects for the past week. See attached
164                 git-report.log
165                 Archive also available on Jenkins at $BUILD_URL
166             always: true
167         - opendaylight-infra-shiplogs:
168             maven-version: 'mvn33'