This repository has been archived by the owner on Apr 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beaker-rpms.yaml
64 lines (63 loc) · 2.19 KB
/
beaker-rpms.yaml
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
- job-template:
name: beaker-rpms-{distro}
description: |
Builds RPMs for the develop and release-* branches on every commit.
Results are published to the yum repos at
https://beaker-project.org/nightlies/ which are used by QE and for
updating beaker-devel.
node: fedora
properties:
- priority-sorter:
priority: 150
# We don't need to keep many builds archived here in Jenkins,
# since RPMs are published to beaker-project.org.
- build-discarder:
num-to-keep: 10
scm:
- git:
url: git://git.beaker-project.org/beaker
branches:
- origin/develop
- origin/release-*
clean:
before: true
wipe-workspace: false
skip-tag: true
use-author: true
submodule:
recursive: true
reference-repo: /var/lib/jenkins/gitreference/beaker
triggers:
- pollscm:
cron: "H/5 * * * *"
wrappers:
- credentials-binding:
- file:
credential-id: "1fc5282d-0e61-4736-ace4-9ff23b065636"
variable: JENKINS_KEYTAB
builders:
- beaker-build-rpms:
dist: "{dist}"
kojitarget: "{kojitarget}"
- shell: |
# GIT_BRANCH is actually remote/branch, e.g. origin/develop
# so we export GIT_BRANCH_NAME as just the branch name, develop
# This is used by the publishing steps below
echo "GIT_BRANCH_NAME=${{GIT_BRANCH#*/}}" >env.properties
- inject:
properties-file: env.properties
publishers:
- report-failures
- archive:
artifacts: koji-result/**
- ssh:
site: "beaker-project.org nightlies"
source: koji-result/*.rpm
remove-prefix: koji-result/
target: "${{GIT_BRANCH_NAME}}/{distro}/"
command: "createrepo_c --update --no-database /srv/www/nightlies/${{GIT_BRANCH_NAME}}/{distro}/"
- project:
name: beaker-rpms
distro: !include: beaker-rpms-distroconfig.yaml.inc
jobs:
- beaker-rpms-{distro}