Require approval for Jenkins builds on PRs from external contributors

This commit is contained in:
Yoann Rodière 2024-03-28 17:42:40 +01:00
parent 786fbd6b84
commit e233879fce
1 changed files with 3 additions and 1 deletions

4
Jenkinsfile vendored
View File

@ -13,7 +13,7 @@ import org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper
/*
* See https://github.com/hibernate/hibernate-jenkins-pipeline-helpers
*/
@Library('hibernate-jenkins-pipeline-helpers@1.5') _
@Library('hibernate-jenkins-pipeline-helpers@1.9') _
import org.hibernate.jenkins.pipeline.helpers.job.JobHelper
@Field final String DEFAULT_JDK_VERSION = '11'
@ -25,6 +25,8 @@ this.helper = new JobHelper(this)
helper.runWithNotification {
stage('Configure') {
requireApprovalForPullRequest 'hibernate'
this.environments = [
// new BuildEnvironment( dbName: 'h2' ),
// new BuildEnvironment( dbName: 'hsqldb' ),