Skip to content

Commit

Permalink
disable discarded history pipelineruns (#989)
Browse files Browse the repository at this point in the history
Co-authored-by: jackyu <[email protected]>
  • Loading branch information
ks-ci-bot and yudong2015 authored Aug 15, 2023
1 parent b50b5c8 commit 82297c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/client/devops/jenkins/pipeline_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ func updatePipelineConfigXml(config string, pipeline *devopsv1alpha3.NoScmPipeli
addOrUpdateElement(strategy, NumToKeepTag, pipeline.Discarder.NumToKeep)
addOrUpdateElement(strategy, ArtiDaysToKeepTag, "-1")
addOrUpdateElement(strategy, ArtiNumToKeepTag, "-1")
} else {
removeChildElement(properties, BuildDiscarderTag)
}

if pipeline.Parameters != nil { // overwrite parameters
Expand Down

0 comments on commit 82297c6

Please sign in to comment.