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