puppet-fdio.yaml revision 22545d4a
1---
2- project:
3    name: puppet-fdio
4    jobs:
5      - 'puppet-module-unit'
6      - 'puppet-fdio-verify-beaker-{stream}-{os}'
7    project: 'puppet-fdio'
8    os: 'centos7'
9    repo-os-part: 'centos7'
10
11    stream:
12      - master:
13          branch: 'master'
14          repo-stream-part: 'master'
15
16- project:
17    name: puppet-fdio-view
18    views:
19      - project-view
20    project-name: puppet-fdio
21
22- job-template:
23    name: 'puppet-fdio-verify-unit-{puppet_version}-{stream}-{os}'
24
25    project-type: freestyle
26    node: '{os}-builder-4c-4g'
27    concurrent: true
28
29    build-discarder:
30      daysToKeep: '{build-days-to-keep}'
31      numToKeep: '{build-num-to-keep}'
32      artifactDaysToKeep: '{build-artifact-days-to-keep}'
33      artifactNumToKeep: '{build-artifact-num-to-keep}'
34
35    parameters:
36      - project-parameter:
37          project: '{project}'
38      - gerrit-parameter:
39          branch: '{branch}'
40      - os-parameter:
41          os: '{os}'
42      - repo-name-parameter:
43          repo-name: '{repo-stream-part}.{repo-os-part}'
44
45    scm:
46      - gerrit-trigger-scm:
47          credentials-id: 'jenkins-gerrit-credentials'
48          refspec: '$GERRIT_REFSPEC'
49          choosing-strategy: 'gerrit'
50
51    wrappers:
52      - fdio-infra-wrappers:
53          build-timeout: '{build-timeout}'
54
55    triggers:
56      - gerrit-trigger-patch-submitted:
57          name: '{project}'
58          branch: '{branch}'
59
60    builders:
61      - shell: |
62          ./scripts/prepare-node.sh
63          ./scripts/ci-unit-tests.sh {puppet_version}
64
65- job-group:
66    name: 'puppet-module-unit'
67    puppet_version:
68      - 3.6
69      - 3.8
70      - 4.0
71      - 4.5
72      - 'latest'
73    jobs:
74      - 'puppet-fdio-verify-unit-{puppet_version}-{stream}-{os}'
75
76- job-template:
77    name: 'puppet-fdio-verify-beaker-{stream}-{os}'
78
79    project-type: freestyle
80    node: '{os}-builder-4c-4g'
81    concurrent: true
82
83    build-discarder:
84      daysToKeep: '{build-days-to-keep}'
85      numToKeep: '{build-num-to-keep}'
86      artifactDaysToKeep: '{build-artifact-days-to-keep}'
87      artifactNumToKeep: '{build-artifact-num-to-keep}'
88
89    parameters:
90      - project-parameter:
91          project: '{project}'
92      - gerrit-parameter:
93          branch: '{branch}'
94      - os-parameter:
95          os: '{os}'
96      - repo-name-parameter:
97          repo-name: '{repo-stream-part}.{repo-os-part}'
98
99    scm:
100      - gerrit-trigger-scm:
101          credentials-id: 'jenkins-gerrit-credentials'
102          refspec: '$GERRIT_REFSPEC'
103          choosing-strategy: 'gerrit'
104
105    wrappers:
106      - fdio-infra-wrappers:
107          build-timeout: '{build-timeout}'
108
109    triggers:
110      - gerrit-trigger-patch-submitted:
111          name: '{project}'
112          branch: '{branch}'
113
114    builders:
115      - shell: |
116          ./scripts/prepare-node.sh
117          ./scripts/allow-local-ssh-root.sh
118          ./scripts/ci-beaker.sh {os}
119
120    publishers:
121      - fdio-infra-shiplogs:
122          maven-version: 'mvn33-new'
123