18d31c120cbb175bf2bd1241a061bf668b319e9e
[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
54     wrappers:
55         - build-name:
56             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
57
58     parameters:
59         - project-parameter:
60             project: '{project}'
61         - '{pod}-defaults'
62         - '{installer}-defaults'
63         - string:
64             name: DEPLOY_SCENARIO
65             default: '{scenario}'
66         - fuel-ci-parameter:
67             gs-pathname: '{gs-pathname}'
68
69     scm:
70         - git-scm:
71             credentials-id: '{ssh-credentials}'
72             refspec: ''
73             branch: '{branch}'
74
75     builders:
76         - multijob:
77             name: deploy
78             condition: SUCCESSFUL
79             projects:
80                 - name: 'fuel-deploy-{pod}-daily-{stream}'
81                   current-parameters: true
82                   git-revision: true
83                   kill-phase-on: FAILURE
84         - multijob:
85             name: functest
86             condition: COMPLETED
87             projects:
88                 - name: 'functest-fuel-{pod}-daily-{stream}'
89                   current-parameters: true
90                   kill-phase-on: NEVER
91         - multijob:
92             name: yardstick
93             condition: COMPLETED
94             projects:
95                 - name: 'yardstick-fuel-{pod}-daily-{stream}'
96                   current-parameters: true
97                   kill-phase-on: NEVER
98
99 - job-template:
100     name: 'fuel-deploy-{pod}-daily-{stream}-development'
101
102     concurrent: false
103
104     properties:
105         - throttle:
106             enabled: true
107             max-total: 1
108             max-per-node: 1
109
110     parameters:
111         - project-parameter:
112             project: 'fuel'
113         - 'ericsson-pod2-defaults'
114         - 'fuel-defaults'
115         - fuel-ci-parameter-new:
116             gs-pathname: ''
117
118     scm:
119         - git-scm:
120             credentials-id: '{ssh-credentials}'
121             refspec: ''
122             branch: 'master'
123
124     wrappers:
125         - build-name:
126             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
127
128     builders:
129         - shell:
130             !include-raw-escape: ./fuel-download-artifact.sh
131         - shell:
132             !include-raw-escape: ./fuel-deploy-master.sh
133 ########################
134 # parameter macros
135 ########################
136 - parameter:
137     name: fuel-ci-parameter-new
138     parameters:
139         - string:
140             name: BUILD_DIRECTORY
141             default: $WORKSPACE/build_output
142             description: "Directory where the build artifact will be located upon the completion of the build."
143         - string:
144             name: CACHE_DIRECTORY
145             default: $HOME/opnfv/cache/$INSTALLER_TYPE
146             description: "Directory where the cache to be used during the build is located."
147         - string:
148             name: GS_URL
149             default: artifacts.opnfv.org/$PROJECT{gs-pathname}
150             description: "URL to Google Storage."