Skip to content

Commit

Permalink
Merge pull request #3 from mbiarnes/disable-PRs
Browse files Browse the repository at this point in the history
disabled PRs on main branch
  • Loading branch information
mbiarnes authored Sep 20, 2023
2 parents c5d75d8 + 9ad087d commit fac58a3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ class KogitoJobTemplate {

def job = createPipelineJob(script, jobParams)
job?.with {

if (Utils.isMainBranch(script)){
disabled()
}

// Redefine to keep days instead of number of builds
logRotator {
daysToKeep(10)
Expand Down

0 comments on commit fac58a3

Please sign in to comment.