Skip to content

Commit fd83080

Browse files
Merge pull request openshift#18561 from coreydaley/pipeline_strategy_build_pruning
Automatic merge from submit-queue. JenkinsPipelineStrategy builds should not be pruned on BuildConfig save JenkinsPipelineStrategy builds should only be pruned by Jenkins and not the default build pruning logic including saving the BuildConfig.
2 parents 30d9a60 + 6ce330d commit fd83080

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/build/controller/common/util.go

+5
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ func HandleBuildPruning(buildConfigName string, namespace string, buildLister bu
4343
return err
4444
}
4545

46+
if buildConfig.Spec.Strategy.JenkinsPipelineStrategy != nil {
47+
glog.V(4).Infof("Build pruning for %s/%s is handled by Jenkins, skipping.", buildConfig.Namespace, buildConfig.Name)
48+
return nil
49+
}
50+
4651
var buildsToDelete []*buildapi.Build
4752
var errList []error
4853

0 commit comments

Comments
 (0)