Skip to content

Commit

Permalink
Fix skipping of certain buildConfig objects
Browse files Browse the repository at this point in the history
  • Loading branch information
cvarjao authored Apr 19, 2018
1 parent b1ba2b0 commit 0cc23f3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/bcgov/OpenShiftHelper.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ class OpenShiftHelper {
creations.add(o)
}else{
if (!'ImageStream'.equalsIgnoreCase("${o.kind}")){
script.echo "Skipping '${key(o)}'"
//script.echo "Skipping '${key(o)}'"
//updates.add(o)
patches.add(o)
}else{
Expand All @@ -544,6 +544,12 @@ class OpenShiftHelper {
script.echo "Creating ${creations.size()} objects"
openshift.apply(creations);
}

if (patches.size()>0){
script.echo "Updating ${patches.size()} objects"
openshift.apply(patches);
}

if (updates.size()>0){
script.echo "Updating ${updates.size()} objects"
openshift.apply(updates);
Expand Down

0 comments on commit 0cc23f3

Please sign in to comment.