Auto: Project Modification in armband jobs
[releng.git] / jjb / auto / auto.yaml
1 ---
2 # jenkins job templates for Auto
3 - project:
4     name: 'auto-ci-jobs'
5     project: 'auto'
6
7     # -------------------------------
8     # BRANCH ANCHORS
9     # -------------------------------
10     master: &master
11       stream: master
12       branch: '{stream}'
13       gs-pathname: ''
14       disabled: false
15     fraser: &fraser
16       stream: fraser
17       branch: 'stable/{stream}'
18       gs-pathname: '/{stream}'
19       disabled: false
20     # -------------------------------
21     # DEPLOY TYPE ANCHORS
22     # -------------------------------
23     baremetal: &baremetal
24       installer: 'fuel'
25       slave-label: 'auto-baremetal'
26     # -------------------------------
27     # POD, INSTALLER, AND BRANCH MAPPING
28     # -------------------------------
29     # CI POD's
30     # -------------------------------
31     #        fraser
32     # -------------------------------
33     pod:
34       # yamllint disable rule:key-duplicates
35       - auto-baremetal:
36           <<: *baremetal
37           <<: *fraser
38       # -------------------------------
39       #        master
40       # -------------------------------
41       - auto-baremetal:
42           <<: *baremetal
43           <<: *master
44     # yamllint enable rule:key-duplicates
45     # -------------------------------
46     #       scenarios
47     # -------------------------------
48     scenario:
49       # HA scenarios
50       - 'os-nosdn-onap-ha':
51           auto-trigger-name: 'fuel-{scenario}-{pod}-{stream}-trigger'
52
53     jobs:
54       - '{installer}-{scenario}-{pod}-auto-daily-{stream}'
55       - '{installer}-deploy-{pod}-daily-{stream}'
56       - '{project}-verify-basic'
57
58 ########################
59 # job templates
60 ########################
61 - job-template:
62     name: '{installer}-{scenario}-{pod}-auto-daily-{stream}'
63
64     disabled: '{obj:disabled}'
65
66     concurrent: false
67
68     properties:
69       - logrotate-default
70       - throttle:
71           enabled: true
72           max-total: 4
73           max-per-node: 1
74           option: 'project'
75       - build-blocker:
76           use-build-blocker: true
77           blocking-jobs:
78             - '{installer}-os-.*?-{pod}-auto-daily-.*'
79           block-level: 'NODE'
80
81     wrappers:
82       - build-name:
83           name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
84
85     triggers:
86       - '{auto-trigger-name}'
87
88     parameters:
89       - project-parameter:
90           project: '{project}'
91           branch: '{branch}'
92       - '{installer}-defaults':
93           gs-pathname: '{gs-pathname}'
94       - '{slave-label}-defaults':
95           installer: '{installer}'
96       - string:
97           name: DEPLOY_SCENARIO
98           default: '{scenario}'
99
100     builders:
101       - trigger-builds:
102           - project: '{installer}-deploy-{pod}-daily-{stream}'
103             current-parameters: false
104             predefined-parameters:
105               DEPLOY_SCENARIO='os-nosdn-nofeature-ha'
106               PROJECT='armband'
107             same-node: true
108             block: true
109
110 ########################
111 # trigger macros
112 ########################
113 # CI PODs
114 # ----------------------------------------------------------------
115 # Auto CI Baremetal Triggers running against master branch
116 # ----------------------------------------------------------------
117 - trigger:
118     name: 'fuel-os-nosdn-onap-ha-auto-baremetal-master-trigger'
119     triggers:
120       - timed: '0 1 * * *'
121 # ---------------------------------------------------------------------
122 # Auto CI Baremetal Triggers running against fraser branch
123 # ---------------------------------------------------------------------
124 - trigger:
125     name: 'fuel-os-nosdn-onap-ha-auto-baremetal-fraser-trigger'
126     triggers:
127       - timed: ''