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
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build Restraint RPMs in Brew instead of locally using mock
Change-Id: If4871a92870accac764739ccbb05a1c455b25b58
- Loading branch information
Showing
4 changed files
with
63 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
- builder: | ||
name: restraint-build-rpms | ||
builders: | ||
- shell: | | ||
rm -rf rpmbuild-output/ koji-result/ | ||
tito build --dist {dist} --test --srpm --output rpmbuild-output/ | ||
k5start -U -f $JENKINS_KEYTAB | ||
# We will check exit status explicitly. | ||
# We want to capture logs regardless whether the builds fails or not. | ||
set +e | ||
# Need to use python2 since Brew does not support gssapi auth yet | ||
output=$(python2 /usr/bin/koji -p brew build --wait --scratch {kojitarget} rpmbuild-output/*.src.rpm) | ||
rc=$? | ||
taskid=$(grep -P -o '(?<=Created task: )\d+' <<<"$output") | ||
mkdir -p koji-result | ||
cd koji-result | ||
python2 /usr/bin/koji -p brew download-logs --recurse --dir=. $taskid | ||
python2 /usr/bin/koji -p brew download-task --noprogress $taskid | ||
exit $rc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
- Fedorarawhide: | ||
dist: .fc29 | ||
kojitag: beaker-harness-fedora-rawhide | ||
ignorefail: "1" | ||
# RCM has not created this yet: https://projects.engineering.redhat.com/browse/RCM-38028 | ||
#- Fedorarawhide: | ||
# dist: .fc30 | ||
# kojitarget: beaker-harness-fedora-rawhide | ||
# ignorefail: "1" | ||
- Fedora28: | ||
dist: .fc28 | ||
kojitag: beaker-harness-fedora-28 | ||
kojitarget: eng-fedora-28-candidate | ||
ignorefail: "" | ||
- Fedora27: | ||
dist: .fc27 | ||
kojitag: beaker-harness-fedora-27 | ||
kojitarget: eng-fedora-27-candidate | ||
ignorefail: "" | ||
- RedHatEnterpriseLinux7: | ||
dist: .el7bkr | ||
kojitag: beaker-harness-rhel-7 | ||
kojitarget: beaker-harness-rhel-7-candidate | ||
ignorefail: "" | ||
- RedHatEnterpriseLinux6: | ||
dist: .el6bkr | ||
kojitag: beaker-harness-rhel-6 | ||
kojitarget: beaker-harness-rhel-6-candidate | ||
ignorefail: "" | ||
- RedHatEnterpriseLinux5: | ||
dist: .el5bkr | ||
kojitag: beaker-harness-rhel-5 | ||
kojitarget: beaker-harness-rhel-5-candidate | ||
ignorefail: "" | ||
- RedHatEnterpriseLinux4: | ||
dist: .el4_8 | ||
kojitag: beaker-harness-rhel-4 | ||
dist: .el4bkr | ||
kojitarget: beaker-harness-rhel-4-candidate | ||
ignorefail: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters