46ccf9d5651d5a133660397aed051d6b9c8e3ed8
[releng.git] / jjb / genesis / genesis-fuel-dell.yml
1 # this is the job configuration for bgs
2 - project:
3     name: genesis-dell
4     installer:
5       - fuel
6     jobs:
7       - 'genesis-{installer}-daily-dell-{stream}'
8
9     # stream:    branch with - in place of / (eg. stable-helium)
10     # branch:    branch (eg. stable/helium)
11     stream:
12         - master:
13             branch: 'master'
14
15     project: 'genesis'
16
17 ########################
18 # job templates
19 ########################
20
21 - job-template:
22     name: 'genesis-{installer}-daily-dell-{stream}'
23
24     node: dell-build
25
26     disabled: true
27
28     parameters:
29         - string:
30             name: BUILD_DIRECTORY
31             default: $WORKSPACE/build_output
32             description: "Directory where the build artifact will be located upon the completion of the build."
33         - string:
34             name: GS_URL
35             default: 'artifacts.opnfv.org/genesis/{installer}'
36             description: "URL to Google Storage."
37         - string:
38             name: INSTALLER
39             default: '{installer}'
40             description: "Installer to use."
41         - string:
42             name: GIT_BASE
43             default: https://gerrit.opnfv.org/gerrit/genesis
44         - string:
45             name: GERRIT_BRANCH
46             default: origin/master
47             description: "Branch to build, deploy and test."
48         - string:
49             name: GERRIT_REFSPEC
50             default: refs/heads/master
51             description: "Refspec to retrieve."
52
53     scm:
54         - git:
55             skip-tag: true
56             url: $GIT_BASE
57             branches:
58                 - $GERRIT_BRANCH
59             refspec: $GERRIT_REFSPEC
60
61     triggers:
62         - pollscm:
63             cron: '@midnight'
64
65     builders:
66       - '{installer}-daily-master-dell'
67
68 ########################
69 # builder macros
70 ########################
71
72 - builder:
73       name: fuel-daily-master-dell
74       builders:
75         - shell: |
76             #!/bin/bash
77             set -o errexit
78             set -o nounset
79             set -o pipefail
80             set -x
81
82             # set/create the cache location
83             OPNFV_FUEL_CACHE="$(dirname $WORKSPACE)/opnfv_fuel_cache"
84             [[ -d $OPNFV_FUEL_CACHE ]] || mkdir -p $OPNFV_FUEL_CACHE
85
86             # do the build
87             cd $WORKSPACE/fuel/ci
88             ./build.sh -f t -v $BUILD_ID -c file://$OPNFV_FUEL_CACHE $BUILD_DIRECTORY