Skip to content

Commit

Permalink
disabled PRs on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mbiarnes committed Sep 20, 2023
1 parent 9833a5e commit 9ad087d
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 9ad087d

Please sign in to comment.