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-rpmdeplint.yaml
43 lines (42 loc) · 1.98 KB
/
beaker-rpmdeplint.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
- job:
name: beaker-rpmdeplint
description: |
Finds RPM dependency problems for Beaker builds in Brew.
concurrent: true
node: fedora
scm:
# Using a git checkout of rpmdeplint for now, while it's still
# unreleased and under active development.
- git:
url: git://git.beaker-project.org/rpmdeplint
branches:
- origin/master
basedir: rpmdeplint
clean:
before: true
wipe-workspace: false
skip-tag: true
reference-repo: /var/lib/jenkins/gitreference/rpmdeplint
triggers:
# This requires the CI Ops sidekick package, which is currently internal-only...
- ci-trigger:
override-topic: "Consumer.rh-jenkins-ci-plugin.e3a8bdbd-aa74-4a53-ade8-ed3f00ded7d0.VirtualTopic.qe.ci.>"
jms-selector: "package = 'beaker' AND method = 'build' AND CI_TYPE = 'brew-taskstatechange' AND new = 'CLOSED' AND target = 'eng-rhel-6-candidate'"
builders:
- shell: |
# Build rpmdeplint from git and install it into a subdirectory of
# the workspace, so that we can run it from there.
R="$(pwd)/buildroot"
mkdir -p "$R"
( cd rpmdeplint && python setup.py install --root="$R" )
export PYTHONPATH="$R/usr/lib/python2.7/site-packages" PATH="$R/usr/bin:$PATH"
rm -f *.rpm
koji -p brew download-task $(jq .info.id <<<"$CI_MESSAGE")
rpmdeplint --debug check \
--repo=rhel6,http://pulp-read.dist.prod.ext.phx2.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os/ \
--repo=rhel6-optional,http://pulp-read.dist.prod.ext.phx2.redhat.com/content/dist/rhel/server/6/6Server/x86_64/optional/os/ \
--repo=beaker-server-rhel6,https://beaker-project.org/yum/server/RedHatEnterpriseLinux6/ \
--arch=x86_64 \
*.rpm
publishers:
- report-failures