Project

General

Profile

Actions

Feature #7656

closed

kmod: remove hardcoded "rhel7" branch name

Added by Ken Dreyer about 10 years ago. Updated about 6 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

We have preliminary kmod packages available at http://ceph.com/rpm-testing/rhel7/x86_64/ (source at https://github.com/ceph/ceph-kmod-rpm). These packages build RPMs from the ceph-client repo's rhel7 branch.

The source code for the modules' tarball generation script currently hard-codes the "rhel7" branch name. This code should be adjusted so that it dynamically determines the to-be-tested ceph-client branch name somehow.

Jenkins does populate a GIT_BRANCH environment variable while building, but since we use Jenkins' MultiSCM plugin to pull from two separate Git repositories for the build, I don't know how the environment variable would work in that case.

A good first step would be to dump all the environment variables during a MultiSCM build and see if anything is usable for a branch name. If Jenkins is not setting a useful environment variable, we can use the output of git name-rev HEAD instead. (That name-rev approach might have better compatibility with gitbuilder anyway.)

Actions

Also available in: Atom PDF