Use pod-params and installer-params for yardstick
[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: 'intel-pod5'
13
14     stream:
15         - master:
16             branch: 'master'
17             gs-pathname: ''
18
19     jobs:
20         - 'joid-{controller}-{pod}-daily-{stream}'
21         - 'joid-deploy-{pod}-daily-{stream}'
22
23 ########################
24 # job templates
25 ########################
26 - job-template:
27     name: 'joid-{controller}-{pod}-daily-{stream}'
28
29     disabled: false
30
31     concurrent: false
32
33     parameters:
34         - project-parameter:
35             project: '{installer}'
36         - 'intel-us-build-1-defaults'
37         - '{installer}-defaults':
38             controller: '{controller}'
39
40     scm:
41         - git-scm:
42             credentials-id: '{ssh-credentials}'
43             refspec: ''
44             branch: '{branch}'
45
46     builders:
47         - trigger-builds:
48           - project: 'joid-deploy-{pod}-daily-{stream}'
49             git-revision: true
50             block: true
51             predefined-parameters:
52                 CONTROLLER={controller}
53
54 - job-template:
55     name: 'joid-deploy-{pod}-daily-{stream}'
56
57     disabled: false
58
59     concurrent: false
60
61     wrappers:
62         - build-name:
63             name: '$BUILD_NUMBER: {installer} $CONTROLLER'
64
65     parameters:
66         - project-parameter:
67             project: '{installer}'
68         - '{pod}-defaults'
69         - '{installer}-defaults':
70             controller: '{controller}'
71
72     scm:
73         - git-scm:
74             credentials-id: '{ssh-credentials}'
75             refspec: ''
76             branch: '{branch}'
77
78     builders:
79         - '{pod}-builder'
80
81 ########################
82 # builder macros
83 ########################
84 - builder:
85     name: intel-pod5-builder
86     builders:
87         - shell: |
88             #!/bin/bash
89             echo "Running $INSTALLER_NAME with controller $CONTROLLER"
90             echo "Please note that this is a quick try to see how joid deployment works"
91             echo
92             echo "Executing clean.sh"
93             cd $WORKSPACE/ci
94             ./clean.sh
95         - shell: |
96             cd $WORKSPACE/ci
97             echo "Executing 02-maasdeploy.sh intelpod5"
98             ./02-maasdeploy.sh intelpod5
99         - shell: |
100             cd $WORKSPACE/ci
101             echo "Executing deploy.sh -o liberty -s $CONTROLLER -t ha -l intelpod5"
102             ./deploy.sh -o liberty -s $CONTROLLER -t ha -l intelpod5