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-review-checks-rpms.yaml
52 lines (50 loc) · 2.1 KB
/
beaker-review-checks-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
- job-template:
name: beaker-review-checks-rpms-{distro}
description: |
Builds RPMs for patches posted to Gerrit.
properties:
- build-discarder:
days-to-keep: 30
concurrent: true
node: fedora
scm: !include: beaker-review-checks-scmconfig.yaml.inc
triggers:
- beaker-review-checks-gerrit-trigger:
file_paths_pattern: ".*"
dependency_jobs: ""
ignorefail: "{ignorefail}"
builders:
- beaker-build-rpms:
dist: "{dist}"
kojitarget: "{kojitarget}"
- shell: |
if [ -f Misc/rpmlint-config.py ] ; then # since Beaker 22
rpmlint -f Misc/rpmlint-config.py -o "NetworkEnabled False" koji-result/*.rpm
fi
- shell: |
rpmgrill-unpack-rpms koji-result/
# Don't bother about missing man pages
rpmgrill --disable=ManPages,SpecFileSanity koji-result/unpacked/
# Pick all test result keys which are not empty and use a workaround
# to translate the jq exit code to a Jenkins exit code for pass/fail
bash -c "jq '.tests[].results | length > 0 | select(. == true)' koji-result/unpacked/rpmgrill.json -e; if [ \"\$?\" == 4 ]; then exit 0; else exit 1; fi"
- shell: |
createrepo_c --no-database koji-result
publishers:
- archive:
artifacts: "koji-result/*.log,koji-result/*.rpm,koji-result/unpacked/rpmgrill.*"
wrappers:
- publish-over-ssh-post-build:
site: "beaker-project.org jenkins-results"
# excluding .src.rpm to save a bit of space
source: "koji-result/**/*.log koji-result/*.noarch.rpm koji-result/repodata/** koji-result/unpacked/rpmgrill.*"
target: "$JOB_NAME/$BUILD_NUMBER"
- credentials-binding:
- file:
credential-id: "1fc5282d-0e61-4736-ace4-9ff23b065636"
variable: JENKINS_KEYTAB
- project:
name: beaker-review-checks-rpms
distro: !include: beaker-rpms-distroconfig.yaml.inc
jobs:
- beaker-review-checks-rpms-{distro}