#43 Add rpmbuild to zuul config
Closed 11 months ago by nphilipp. Opened 2 years ago by asaleh.
asaleh/mirrors-countme zuul-rpm-build  into  main

file modified
+11
@@ -10,3 +10,14 @@ 

      check:

        jobs:

          - tox-f33

+         - rpm-mock-build:

+             vars:

+               mock_config: fedora-33-x86_64

+               build_from_source: true

+               version_from_specfile: true

+               src_name: mirrors-countme

+             nodeset: fedora-33-vm

+         - rpm-build:

+             vars:

+               target: epel8

+               release: epel8

Another attempt after faulty rebase

Unable to freeze job graph: Unable to modify final job <Job rpm-build branches: {MatchAny:{BranchMatcher:rawhide},{BranchMatcher:main}} source: fedora-project-config/zuul.d/_jobs-base.yaml@master#3> attribute variables={'target': 'epel8', 'release': 'epel8'} with variant <Job rpm-build branches: None source: mirrors-countme/.zuul.yaml@main#9>

@asaleh I imagine this fails because the spec file was removed from the source repo. Is there a way to tell Zuul to build from an external spec file?

Looking at this more closely, it seems like neither job work for us:

  • The rpm-mock-build job is tailored around a spec file existing in the root directory of a repository (which we don't have anymore :wink:).
  • The rpm-build role doesn't look like it can work to me, because both the fedpkg-srpm-build and fedpkg-build-ng roles attempt to pull from https://src.fedoraproject.org/{{ zuul.project.name }} which doesn't incorporate the namespace (rpms) and assumes that the downstream package name will be the same as the upstream project name.

Heh this is old. We’re migrating the repo (filtered to shed the large blobs of test data) to GitHub, and as we’ll probably use different CI there, I'll close this one.

Pull-Request has been closed by nphilipp

11 months ago
Metadata