New worker for Orange Pod2
[releng.git] / jjb / joid / joid.yml
1 ########################
2 # Job configuration for joid
3 ########################
4 - project:
5
6     name: 'joid'
7
8     installer: 'joid'
9
10     controller: 'odl'
11
12     pod:
13         - 'intel-pod5'
14         - 'orange-pod2'
15
16     stream:
17         - master:
18             branch: 'master'
19             gs-pathname: ''
20
21     jobs:
22         - 'joid-{controller}-{pod}-daily-{stream}'
23         - 'joid-deploy-{pod}-daily-{stream}'
24
25 ########################
26 # job templates
27 ########################
28 - job-template:
29     name: 'joid-{controller}-{pod}-daily-{stream}'
30
31     disabled: false
32
33     concurrent: false
34
35     parameters:
36         - project-parameter:
37             project: '{installer}'
38         - 'intel-us-build-1-defaults'
39         - '{installer}-defaults':
40             controller: '{controller}'
41
42     scm:
43         - git-scm:
44             credentials-id: '{ssh-credentials}'
45             refspec: ''
46             branch: '{branch}'
47
48     builders:
49         - trigger-builds:
50           - project: 'joid-deploy-{pod}-daily-{stream}'
51             git-revision: true
52             block: true
53             predefined-parameters:
54                 CONTROLLER={controller}
55
56 - job-template:
57     name: 'joid-deploy-{pod}-daily-{stream}'
58
59     disabled: false
60
61     concurrent: false
62
63     wrappers:
64         - build-name:
65             name: '$BUILD_NUMBER: {installer} $CONTROLLER'
66
67     parameters:
68         - project-parameter:
69             project: '{installer}'
70         - '{pod}-defaults'
71         - '{installer}-defaults':
72             controller: '{controller}'
73
74     scm:
75         - git-scm:
76             credentials-id: '{ssh-credentials}'
77             refspec: ''
78             branch: '{branch}'
79
80     builders:
81         - '{pod}-builder'
82
83 ########################
84 # builder macros
85 ########################
86 - builder:
87     name: intel-pod5-builder
88     builders:
89         - shell: |
90             #!/bin/bash
91             echo "Running $INSTALLER_NAME with controller $CONTROLLER"
92             echo "Please note that this is a quick try to see how joid deployment works"
93             echo
94             echo "Executing clean.sh"
95             cd $WORKSPACE/ci
96             ./clean.sh
97         - shell: |
98             cd $WORKSPACE/ci
99             echo "Executing 02-maasdeploy.sh intelpod5"
100             ./02-maasdeploy.sh intelpod5
101         - shell: |
102             cd $WORKSPACE/ci
103             echo "Executing deploy.sh -o liberty -s $CONTROLLER -t ha -l intelpod5"
104             ./deploy.sh -o liberty -s $CONTROLLER -t ha -l intelpod5
105 - builder:
106     name: orange-pod2-builder
107     builders:
108         - shell: |
109             #!/bin/bash
110             echo "Running $INSTALLER_NAME with controller $CONTROLLER"
111             echo "Please note that this is WIP generic builder"
112             echo
113             echo "Executing clean.sh"
114             cd $WORKSPACE/ci
115             ./clean.sh
116         - shell:
117             !include-raw ./joid-deploy.sh