att and del have both asked me to test fuel daily on their slaves.
[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     project-type: freestyle
25
26     node: dell-build
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: '@midnight'
63
64     logrotate:
65         daysToKeep: 30
66         numToKeep: 10
67         artifactDaysToKeep: -1
68         artifactNumToKeep: -1
69
70     builders:
71       - '{installer}-daily-master-dell'
72
73
74
75 ########################
76 # builder macros
77 ########################
78
79
80 - builder:
81       name: fuel-daily-master-dell
82       builders:
83         - shell: |
84             #!/bin/bash
85             set -o errexit
86             set -o nounset
87             set -o pipefail
88             set -x
89
90             # set/create the cache location
91             OPNFV_FUEL_CACHE="$(dirname $WORKSPACE)/opnfv_fuel_cache"
92             [[ -d $OPNFV_FUEL_CACHE ]] || mkdir -p $OPNFV_FUEL_CACHE
93
94             # do the build
95             cd $WORKSPACE/fuel/ci
96             ./build.sh -f t -v $BUILD_ID -c file://$OPNFV_FUEL_CACHE $BUILD_DIRECTORY