Merge "Update deprecated pollscm usage"
[releng.git] / jjb / fuel / fuel-ci-jobs-master.yml
1 - project:
2
3     name: 'fuel-master'
4
5     project: 'fuel'
6
7     installer: '{project}'
8
9 #--------------------------------
10 # BRANCH ANCHORS
11 #--------------------------------
12     master: &master
13         stream: master
14         branch: '{stream}'
15         gs-pathname: ''
16 #--------------------------------
17 # POD, INSTALLER, AND BRANCH MAPPING
18 #--------------------------------
19     pod:
20         - ericsson-pod2:
21             <<: *master
22 #--------------------------------
23
24 # new scenario descriptions
25     scenario:
26         - 'os_ha'
27         - 'os_odl-l2_ha'
28         - 'os_odl-l3_ha'
29         - 'os_onos_ha'
30         - 'os_kvm_ha'
31         - 'os_ovs_ha'
32         - 'os_kvm_ovs_ha'
33
34     jobs:
35         - 'fuel-{scenario}-{pod}-daily-{stream}'
36         - 'fuel-deploy-{pod}-daily-{stream}-development'
37
38 ########################
39 # job templates - new type of defining the scenario
40 ########################
41 - job-template:
42     name: 'fuel-{scenario}-{pod}-daily-{stream}'
43
44     project-type: multijob
45
46     concurrent: false
47
48     properties:
49         - throttle:
50             enabled: true
51             max-total: 1
52             max-per-node: 1
53         - build-blocker:
54             use-build-blocker: true
55             blocking-jobs:
56                 - 'fuel-os_.*'
57
58     wrappers:
59         - build-name:
60             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
61
62     parameters:
63         - project-parameter:
64             project: '{project}'
65         - '{pod}-defaults'
66         - '{installer}-defaults'
67         - string:
68             name: DEPLOY_SCENARIO
69             default: '{scenario}'
70         - fuel-ci-parameter:
71             gs-pathname: '{gs-pathname}'
72
73     scm:
74         - git-scm:
75             credentials-id: '{ssh-credentials}'
76             refspec: ''
77             branch: '{branch}'
78
79     builders:
80         - multijob:
81             name: deploy
82             condition: SUCCESSFUL
83             projects:
84                 - name: 'fuel-deploy-{pod}-daily-{stream}'
85                   current-parameters: true
86                   git-revision: true
87                   kill-phase-on: FAILURE
88         - multijob:
89             name: functest
90             condition: COMPLETED
91             projects:
92                 - name: 'functest-fuel-{pod}-daily-{stream}'
93                   current-parameters: true
94                   kill-phase-on: NEVER
95         - multijob:
96             name: yardstick
97             condition: COMPLETED
98             projects:
99                 - name: 'yardstick-fuel-{pod}-daily-{stream}'
100                   current-parameters: true
101                   kill-phase-on: NEVER
102
103 - job-template:
104     name: 'fuel-deploy-{pod}-daily-{stream}-development'
105
106     concurrent: false
107
108     properties:
109         - throttle:
110             enabled: true
111             max-total: 1
112             max-per-node: 1
113
114     parameters:
115         - project-parameter:
116             project: 'fuel'
117         - 'ericsson-pod2-defaults'
118         - 'fuel-defaults'
119         - fuel-ci-parameter-new:
120             gs-pathname: ''
121
122     scm:
123         - git-scm:
124             credentials-id: '{ssh-credentials}'
125             refspec: ''
126             branch: 'master'
127
128     wrappers:
129         - build-name:
130             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
131
132     builders:
133         - shell:
134             !include-raw-escape: ./fuel-download-artifact.sh
135         - shell:
136             !include-raw-escape: ./fuel-deploy-master.sh
137 ########################
138 # parameter macros
139 ########################
140 - parameter:
141     name: fuel-ci-parameter-new
142     parameters:
143         - string:
144             name: BUILD_DIRECTORY
145             default: $WORKSPACE/build_output
146             description: "Directory where the build artifact will be located upon the completion of the build."
147         - string:
148             name: CACHE_DIRECTORY
149             default: $HOME/opnfv/cache/$INSTALLER_TYPE
150             description: "Directory where the cache to be used during the build is located."
151         - string:
152             name: GS_URL
153             default: artifacts.opnfv.org/$PROJECT{gs-pathname}
154             description: "URL to Google Storage."