Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 0cc23f3

Browse files
authored
Fix skipping of certain buildConfig objects
1 parent b1ba2b0 commit 0cc23f3

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/bcgov/OpenShiftHelper.groovy

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ class OpenShiftHelper {
524524
creations.add(o)
525525
}else{
526526
if (!'ImageStream'.equalsIgnoreCase("${o.kind}")){
527-
script.echo "Skipping '${key(o)}'"
527+
//script.echo "Skipping '${key(o)}'"
528528
//updates.add(o)
529529
patches.add(o)
530530
}else{
@@ -544,6 +544,12 @@ class OpenShiftHelper {
544544
script.echo "Creating ${creations.size()} objects"
545545
openshift.apply(creations);
546546
}
547+
548+
if (patches.size()>0){
549+
script.echo "Updating ${patches.size()} objects"
550+
openshift.apply(patches);
551+
}
552+
547553
if (updates.size()>0){
548554
script.echo "Updating ${updates.size()} objects"
549555
openshift.apply(updates);

0 commit comments

Comments
 (0)