-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathrhel-index.yaml.head
78 lines (75 loc) · 2.14 KB
/
rhel-index.yaml.head
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
- job:
name: 'EL-Dockerfiles-pr-check'
properties:
- github:
url: https://github.com/rhdt/EL-Dockerfiles
display-name: 'EL-Dockerfiles-pr-check'
scm:
- git:
url: https://github.com/rhdt/EL-Dockerfiles.git
# credentials-id: ""
skip-tag: True
refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
branches:
- '${ghprbActualCommit}'
triggers:
- github-pull-request:
status-context: "rhel ci PR build"
admin-list:
- jmelis
- riuvshin
- kbsingh
- rh-devtools-bot
cron: '* * * * *'
github-hooks: false
permit-all: false
trigger-phrase: '.*\[test\].*'
allow-whitelist-orgs-as-admins: true
status-context: "rhel ci PR build"
builders:
- shell: ./pr_check.sh
- job_defaults: &job_defaults
name: 'defaults'
defaults: global
project-type: freestyle
display-name: 'rhel-{image_name}-{branch_name}'
description: 'Do not edit this job through the web!'
concurrent: false
scm:
- git:
url: https://github.com/rhdt/EL-Dockerfiles.git
shallow_clone: true
branches:
- '{branch_name}'
sparse-checkout:
paths:
- 'base/{image_name}'
included-regions:
- 'base/{image_name}/.*'
builders:
- shell: |
if [ ! -f build_push.sh ]; then
git show HEAD:build_push.sh > build_push.sh
chmod +x build_push.sh
fi
./build_push.sh {image_name}
- job-template:
name: 'rhel-{image_name}-{branch_name}'
id: 'base-rhel'
triggers:
- timed: "@weekly"
- pollscm:
cron: "H/3 * * * *"
<<: *job_defaults
- job-template:
name: 'rhel-{image_name}-{branch_name}'
id: 'downstream-rhel'
display-name: 'rhel-{image_name}-{branch_name}-downstream'
triggers:
- pollscm:
cron: "H/3 * * * *"
- reverse:
jobs:
- '{parent_job}'
result: 'success'
<<: *job_defaults