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