jjb: move project-style to releng-defaults.yaml
[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     logrotate:
63         daysToKeep: 30
64         numToKeep: 10
65         artifactDaysToKeep: -1
66         artifactNumToKeep: -1
67
68     builders:
69       - '{installer}-daily-master-att'
70
71 ########################
72 # builder macros
73 ########################
74
75 - builder:
76     name: fuel-daily-master-att
77     builders:
78       - shell: |
79           #!/bin/bash
80           set -o errexit
81           set -o nounset
82           set -o pipefail
83           set -x
84
85           # set/create the cache location
86           OPNFV_FUEL_CACHE="$(dirname $WORKSPACE)/opnfv_fuel_cache"
87           [[ -d $OPNFV_FUEL_CACHE ]] || mkdir -p $OPNFV_FUEL_CACHE
88
89           # do the build
90           cd $WORKSPACE/fuel/ci
91           ./build.sh -f t -v $BUILD_ID -c file://$OPNFV_FUEL_CACHE $BUILD_DIRECTORY