You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The release manager allows to configure "allowPartialRebuild" - which is especially helpful for large projects where only one component is changed, and only that one should be rebuild
To Reproduce
New releasemanager
2 ods components - add both to RM and build (in WIP)
set allowPartialRebuild in metadata.yml -> true
change one component
rebuild the RM in WIP
Expected behavior
only the changed component gets rebuild, the other stays as is - and gets resurrected
Affected version (please complete the following information):
OpenDevStack [4.x/master]
Log Output (ensure to remove any confidential information like tokens, project names, etc.
DEBUG: Checking if repo can be resurrected from previous build ...
[Pipeline] fileExists
[..]
[Pipeline] echo
Checking if image SHAs for 'gol' of 1 deployment(s) are up-to-date ...
[Pipeline] echo
DEBUG: Verifying images of DeploymentConfig 'gol'
[Pipeline] sh (Get latest version of DeploymentConfig/gol)
+ oc -n null get DeploymentConfig/gol -o 'jsonpath={.status.latestVersion}'
Error from server (Forbidden): deploymentconfigs.apps.openshift.io "gol" is forbidden: User "system:serviceaccount:dcare-cd:jenkins" cannot get resource "deploymentconfigs" in API group "apps.openshift.io" in the namespace "null"
[Pipeline] echo
DEBUG: DeploymentConfig 'gol' does not exist!
[..]
Resurrection of previous build for 'gol' not possible as deployment 'gol' was not found in OpenShift.
[Pipeline] echo
Note the oc -n null - which makes this break
The text was updated successfully, but these errors were encountered:
While fixing this - I took a pretty hard look at the codebase - and propose two things on top of this fix
allow ressurection also for ods-service and not just ods /code components
remove the "dummy commits" happening for non-ods components, which decreases complexity
I also found some interesting behaviour on unirest / getAsFile -> where the directory must exist - and the only way to make this happen is vie jenkins means (steps.dir)
clemensutschig
changed the title
4.x/master: allowPartialRebuild is broken
REGRESSION: 4.x/master - allowPartialRebuild functionality is broken
Mar 11, 2023
Describe the bug
The release manager allows to configure "allowPartialRebuild" - which is especially helpful for large projects where only one component is changed, and only that one should be rebuild
To Reproduce
ods
components - add both to RM and build (in WIP)allowPartialRebuild
in metadata.yml -> trueExpected behavior
only the changed component gets rebuild, the other stays as is - and gets resurrected
Affected version (please complete the following information):
Log Output (ensure to remove any confidential information like tokens, project names, etc.
Note the
oc -n null
- which makes this breakThe text was updated successfully, but these errors were encountered: