Skip to content

Commit

Permalink
Remove PR job
Browse files Browse the repository at this point in the history
  • Loading branch information
radtriste committed Sep 7, 2023
1 parent ed14b2a commit 23122b5
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .ci/jenkins/dsl/jobs.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,23 @@ setupQuarkusUpdateJob()
void setupPrJob() {
setupBuildImageJob(JobType.PULL_REQUEST)

def jobParams = JobParamsUtils.getBasicJobParams(this, 'kogito-images', JobType.PULL_REQUEST, "${jenkins_path}/Jenkinsfile", "Kogito Images PR check")
JobParamsUtils.setupJobParamsDefaultMavenConfiguration(this, jobParams)
jobParams.pr.putAll([
run_only_for_branches: [ "${GIT_BRANCH}" ],
disable_status_message_error: true,
disable_status_message_failure: true,
commitContext: 'Retrieve and Launch Image Checks',
contextShowtestResults: false,
])
if (Utils.hasBindingValue(this, 'CLOUD_IMAGES')) {
jobParams.env.put('IMAGES_LIST', Utils.getBindingValue(this, 'CLOUD_IMAGES'))
}
jobParams.env.putAll([
AUTHOR_CREDS_ID: "${GIT_AUTHOR_CREDENTIALS_ID}",
])
KogitoJobTemplate.createPRJob(this, jobParams)
// TODO create PR job with branch source plugin
// def jobParams = JobParamsUtils.getBasicJobParams(this, 'kogito-images', JobType.PULL_REQUEST, "${jenkins_path}/Jenkinsfile", "Kogito Images PR check")
// JobParamsUtils.setupJobParamsDefaultMavenConfiguration(this, jobParams)
// jobParams.pr.putAll([
// run_only_for_branches: [ "${GIT_BRANCH}" ],
// disable_status_message_error: true,
// disable_status_message_failure: true,
// commitContext: 'Retrieve and Launch Image Checks',
// contextShowtestResults: false,
// ])
// if (Utils.hasBindingValue(this, 'CLOUD_IMAGES')) {
// jobParams.env.put('IMAGES_LIST', Utils.getBindingValue(this, 'CLOUD_IMAGES'))
// }
// jobParams.env.putAll([
// AUTHOR_CREDS_ID: "${GIT_AUTHOR_CREDENTIALS_ID}",
// ])
// KogitoJobTemplate.createPRJob(this, jobParams)
}

void createSetupBranchJob() {
Expand Down

0 comments on commit 23122b5

Please sign in to comment.