Disable obsolete genesis jobs to prevent accidental builds
[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     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: '@midnight'
63
64     builders:
65       - '{installer}-daily-master-att'
66
67 ########################
68 # builder macros
69 ########################
70
71 - builder:
72     name: fuel-daily-master-att
73     builders:
74       - shell: |
75           #!/bin/bash
76           set -o errexit
77           set -o nounset
78           set -o pipefail
79           set -x
80
81           # set/create the cache location
82           OPNFV_FUEL_CACHE="$(dirname $WORKSPACE)/opnfv_fuel_cache"
83           [[ -d $OPNFV_FUEL_CACHE ]] || mkdir -p $OPNFV_FUEL_CACHE
84
85           # do the build
86           cd $WORKSPACE/fuel/ci
87           ./build.sh -f t -v $BUILD_ID -c file://$OPNFV_FUEL_CACHE $BUILD_DIRECTORY