Merge "Add netvirt csit for stateful and learn security groups"
[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     logrotate:
11         daysToKeep: '{build-days-to-keep}'
12         artifactDaysToKeep: '14'
13
14     parameters:
15         - opendaylight-infra-parameters:
16             project: '{project}'
17             branch: '{branch}'
18             refspec: 'refs/heads/{branch}'
19             artifacts: '{archive-artifacts}'
20         - autorelease-release-tag:
21             release-tag: '{next-release-tag}'
22         - autorelease-release-branch:
23             release-branch: '{branch}'
24
25     scm:
26         - git:
27             credentials-id: 'opendaylight-jenkins-ssh'
28             url: '$GIT_BASE'
29             refspec: ''
30             branches:
31                 - 'origin/{branch}'
32             skip-tag: true
33             submodule:
34                 recursive: true
35                 timeout: 60
36
37     wrappers:
38         - opendaylight-infra-wrappers:
39             build-timeout: '1440'
40
41     triggers:
42         - timed: 'H 0 * * *'
43
44     builders:
45         - wipe-local-maven-repo
46         - jacoco-nojava-workaround
47         - shell: "./scripts/list-project-dependencies.sh"
48         - autorelease-cfp:
49             autorelease-settings: 'autorelease-settings'
50             odl-global-settings: 'odl-global-settings'
51         - autorelease-generate-taglist
52         - autorelease-distribute-taglist
53         - autorelease-generate-release-patches
54         - maven-target:
55               maven-version: '{mvn33}'
56               pom: 'pom.xml'
57               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'
58               java-opts:
59                 - '-Xmx10g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
60               settings: 'autorelease-settings'
61               settings-type: cfp
62               global-settings: 'odl-global-settings'
63               global-settings-type: cfp
64         - autorelease-maven-deploy
65         - autorelease-get-integration-test-variables
66         - autorelease-maven-sources:
67             maven-version: '{mvn33}'
68             settings: 'autorelease-settings'
69             global-settings: 'odl-global-settings'
70         - autorelease-maven-sources-post-process
71         - autorelease-sys-stats
72         - shell: |
73             mkdir -p archives/
74             cp *.log *.prop $_
75
76     publishers:
77     - email-notification:
78         email-prefix: '[autorelease]'
79     - trigger-parameterized-builds:
80         - project: 'integration-distribution-test-{integration-test}'
81           condition: UNSTABLE_OR_BETTER
82           property-file: variables.prop
83           fail-on-missing: true
84     - opendaylight-infra-shiplogs:
85         maven-version: '{mvn33}'
86
87 - job-template:
88     name: 'autorelease-project-report-{stream}'
89
90     project-type: freestyle
91     node: centos7-java-builder-2c-8g
92
93     logrotate:
94         daysToKeep: '{build-days-to-keep}'
95         numToKeep: '{build-num-to-keep}'
96         artifactDaysToKeep: '{build-artifact-days-to-keep}'
97         artifactNumToKeep: '{build-artifact-num-to-keep}'
98
99     parameters:
100         - opendaylight-infra-parameters:
101             project: '{project}'
102             branch: '{branch}'
103             refspec: 'refs/heads/{branch}'
104             artifacts: '{archive-artifacts}'
105         - string:
106             name: REPORT_DIR
107             default: '$WORKSPACE/project-reports'
108             description: "The directory containing project reports"
109
110     scm:
111         - git:
112             credentials-id: 'opendaylight-jenkins-ssh'
113             url: '$GIT_BASE'
114             refspec: ''
115             branches:
116                 - 'origin/{branch}'
117             skip-tag: true
118             submodule:
119                 recursive: true
120
121     wrappers:
122         - opendaylight-infra-wrappers:
123             build-timeout: '30'
124
125     triggers:
126         - timed: '0 0 * * 0'
127
128     builders:
129         - shell: 'echo "DATE=`date +%Y-%m-%d`" > $WORKSPACE/variables.prop'
130         - inject:
131             properties-file: variables.prop
132         - autorelease-generate-project-report
133         - shell: "./scripts/list-project-dependencies.sh"
134         - autorelease-sys-stats
135
136     publishers:
137     - email-ext:
138         attachments: 'project-reports/*.log'
139         recipients: 'skitt@redhat.com thanh.ha@linuxfoundation.org'
140         reply-to: dev@lists.opendaylight.org
141         content-type: default
142         subject: '[releng] ODL {stream} project report for ${{ENV, var="DATE"}}'
143         body: |
144             This is a project report generated on $DATE listing the commit
145             history of ODL projects for the past week. See attached
146             git-report.log
147
148             Archive also available on Jenkins at $BUILD_URL
149         always: true
150     - opendaylight-infra-shiplogs:
151         maven-version: '{mvn33}'