update getValidOpenShiftBuildName to work with github org generated jobs
Opened this issue · 1 comments
rawlingsj commented
update getValidOpenShiftBuildName to work with github org generated jobs
jstrachan commented
jenkins.openshift.org/job-path: jstrachan/demo200/master
is an example import of the github org jstrachan
and repo demo200
for the master
branch which we can use to find the BuildConfig which is mapped to this job name (which may be called "demo200" by default but could be different based on whether we omit the prefix + suffix for org+ branch.
So if that annotation is there, Jenkins made the BC and matching on it is gonna be simplest. Otherwise you could assume the job name is namespace/build-config-name