hicn.yaml revision 94719c33
1---
2- project:
3    name: hicn
4    jobs:
5      - 'hicn-verify-{stream}-{os}'
6      - 'hicn-merge-{stream}-{os}'
7
8    project: 'hicn'
9    os:
10      - ubuntu1804:
11          repo-os-part: 'ubuntu.bionic.main'
12      - ubuntu1604:
13          repo-os-part: 'ubuntu.xenial.main'
14      - centos7:
15          repo-os-part: 'centos7'
16
17    stream:
18      - master:
19          branch: 'master'
20          repo-stream-part: 'master'
21
22    type:
23      - short
24      - long
25
26- job-template:
27    name: 'hicn-verify-{stream}-{os}'
28
29    project-type: freestyle
30    node: '{os}-us'
31    concurrent: true
32
33    build-discarder:
34      daysToKeep: '{build-days-to-keep}'
35      numToKeep: 100
36      artifactDaysToKeep: '{build-artifact-days-to-keep}'
37      artifactNumToKeep: '{build-artifact-num-to-keep}'
38
39    parameters:
40      - project-parameter:
41          project: '{project}'
42      - gerrit-parameter:
43          branch: '{branch}'
44      - os-parameter:
45          os: '{os}'
46      - repo-name-parameter:
47          repo-name: '{repo-stream-part}.{repo-os-part}'
48      - stream-parameter:
49          stream: '{stream}'
50
51    scm:
52      - gerrit-trigger-scm:
53          credentials-id: 'jenkins-gerrit-credentials'
54          refspec: '$GERRIT_REFSPEC'
55          choosing-strategy: 'gerrit'
56
57    wrappers:
58      - fdio-infra-wrappers:
59          build-timeout: 120
60
61    triggers:
62      - gerrit-trigger-checkstyle:
63          name: '{project}'
64          branch: '{branch}'
65
66    builders:
67      - shell:
68          !include-raw-escape:
69          - include-raw-hicn-build.sh
70
71    publishers:
72      - archive:
73          artifacts: >
74            **/build/*.rpm,
75            **/build/*.deb
76          allow-empty: 'true'
77          fingerprint: false
78          only-if-success: true
79          default-excludes: false
80      - fdio-infra-shiplogs:
81          maven-version: 'mvn33-new'
82
83- job-template:
84    name: 'hicn-merge-{stream}-{os}'
85
86    project-type: freestyle
87    node: '{os}-us'
88
89    build-discarder:
90      daysToKeep: '{build-days-to-keep}'
91      numToKeep: 100
92      artifactDaysToKeep: '{build-artifact-days-to-keep}'
93      artifactNumToKeep: '{build-artifact-num-to-keep}'
94
95    parameters:
96      - project-parameter:
97          project: '{project}'
98      - gerrit-parameter:
99          branch: '{branch}'
100      - os-parameter:
101          os: '{os}'
102      - maven-project-parameter:
103          maven: 'mvn33-new'
104      - maven-exec:
105          maven-version: 'mvn33-new'
106      - stream-parameter:
107          stream: 'release'
108      - repo-name-parameter:
109          repo-name: '{repo-stream-part}.{repo-os-part}'
110
111    scm:
112      - gerrit-trigger-scm:
113          credentials-id: 'jenkins-gerrit-credentials'
114          refspec: ''
115          choosing-strategy: 'default'
116
117    wrappers:
118      - fdio-infra-wrappers:
119          build-timeout: '{build-timeout}'
120
121    triggers:
122      - gerrit-trigger-patch-merged:
123          name: '{project}'
124          branch: '{branch}'
125
126    builders:
127      - config-file-provider:
128          files:
129            - file-id: '.packagecloud'
130              target: '/root'
131      - config-file-provider:
132          files:
133            - file-id: 'packagecloud_api'
134              target: '/root'
135      - maven-target:
136          maven-version: 'mvn33-new'
137          goals: '--version'
138          settings: 'hicn-settings'
139          settings-type: cfp
140          global-settings: 'global-settings'
141          global-settings-type: cfp
142      - shell:
143          !include-raw-escape:
144          - include-raw-hicn-checkstyle.sh
145      - shell:
146          !include-raw-escape:
147          - include-raw-hicn-build.sh
148      - provide-maven-settings:
149          settings-file: 'hicn-settings'
150          global-settings-file: 'global-settings'
151      - shell:
152          !include-raw-escape:
153          - ../scripts/packagecloud_push.sh
154      - shell:
155          !include-raw-escape:
156          - ../scripts/maven_push_functions.sh
157          - include-raw-hicn-maven-push.sh
158
159    publishers:
160      - archive:
161          artifacts: >
162            **/build/*.rpm,
163            **/build/*.deb
164          allow-empty: 'true'
165          fingerprint: false
166          only-if-success: true
167          default-excludes: false
168      - fdio-infra-shiplogs:
169          maven-version: 'mvn33-new'
170      - naginator:
171          rerun-unstable-builds: false
172          max-failed-builds: 1
173          fixed-delay: 90
174