1974954755185be71db8df748eacd4f3fc97ec59
[releng.git] / jjb / laas / laas.yml
1 ---
2 - parameter:
3     name: 'laas-dashboard-defaults'
4     parameters:
5       - label:
6           name: SLAVE_LABEL
7           default: 'laas-dashboard'
8           description: 'Slave label on Jenkins'
9           all-nodes: false
10           node-eligibility: 'ignore-offline'
11       - string:
12           name: GIT_BASE
13           default: https://gerrit.opnfv.org/gerrit/$PROJECT
14           description: 'Git URL to use on this Jenkins Slave'
15       - string:
16           name: BUILD_DIRECTORY
17           default: $WORKSPACE/build_output
18           description: "Directory where the build artifact will be located upon the completion of the build."
19
20 - project:
21     name: laas-dashboard-jobs
22
23     project: 'laas'
24     project-name: 'laas'
25
26     stream:
27       - master
28
29     disabled: false
30
31     jobs:
32       - 'laas-dashboard-backup'
33       - 'laas-dashboard-deploy'
34
35 - job-template:
36     name: 'laas-dashboard-backup'
37
38     disabled: '{obj:disabled}'
39
40     parameters:
41       - 'laas-dashboard-defaults'
42
43     triggers:
44       - timed: '@daily'
45
46     builders:
47       - shell:
48           !include-raw: shell/backup-dashboard.sh
49
50 - job-template:
51     name: 'laas-dashboard-deploy'
52
53     disabled: '{obj:disabled}'
54
55     parameters:
56       - project-parameter:
57           project: '{project}'
58           branch: 'master'
59       - 'laas-dashboard-defaults'
60
61     scm:
62       - git-scm-gerrit
63
64     triggers:
65       - gerrit-trigger-change-merged:
66           branch: 'master'
67           project: '{project}'
68           files: 'dashboard/docker-compose.yml'
69
70     builders:
71       - shell:
72           !include-raw: shell/deploy-dashboard.sh