absa-subatomic-legacy / laboratory

OpenShift Templates, Build Configs, S2I images and other shared artifacts
Apache License 2.0
1 stars 2 forks source link

Allow Build Config's to be rebuilt even when there is no repository changes #25

Closed donovanmuller closed 6 years ago

donovanmuller commented 6 years ago

Currently you cannot rebuild a Jenkins job because the OpenShift Build Config does not allow patching a resource that does not actually change.

In the case of the BuildConfig, the output.to.name is being patched with a value that includes the commit hash. However, in the case of a Jenkins job rebuild, the commit hash does not change and therefore the following error occurs:

screen shot 2018-02-20 at 16 09 19

I.e. the name does not actually change so the patch fails. We should allow for rebuilding Jenkins jobs by overcoming this shortcoming.