2
2
* This file is describing all the Jenkins jobs in the DSL format (see https://plugins.jenkins.io/job-dsl/)
3
3
* needed by the Kogito pipelines.
4
4
*
5
- * The main part of Jenkins job generation is defined into the https://github.com/kiegroup/ kogito-pipelines repository.
5
+ * The main part of Jenkins job generation is defined into the https://github.com/apache/incubator-kie- kogito-pipelines repository.
6
6
*
7
7
* This file is making use of shared libraries defined in
8
- * https://github.com/kiegroup/ kogito-pipelines/tree/main/dsl/seed/src/main/groovy/org/kie/jenkins/jobdsl.
8
+ * https://github.com/apache/incubator-kie- kogito-pipelines/tree/main/dsl/seed/src/main/groovy/org/kie/jenkins/jobdsl.
9
9
*/
10
10
11
11
import org.kie.jenkins.jobdsl.model.JenkinsFolder
@@ -67,7 +67,7 @@ List getExamplesBuildMvnOptions(JenkinsFolder jobFolder) {
67
67
}
68
68
69
69
// PR checks
70
- KogitoJobUtils . createAllEnvironmentsPerRepoPRJobs (this ) { jobFolder -> getMultijobPRConfig(jobFolder) }
70
+ Utils . isMainBranch (this ) && KogitoJobTemplate . createPullRequestMultibranchPipelineJob( this , " ${ jenkins_path } /Jenkinsfile " )
71
71
72
72
// Init branch
73
73
createSetupBranchJob()
@@ -98,7 +98,9 @@ if (isMainStream()) {
98
98
99
99
// Quarkus 3
100
100
if (EnvUtils . isEnvironmentEnabled(this , ' quarkus-3' )) {
101
- setupPrQuarkus3RewriteJob()
101
+ // Deactivated due to ghprb not available on Apache Jenkins
102
+ // TODO create PR job with branch source plugin
103
+ // setupPrQuarkus3RewriteJob()
102
104
setupStandaloneQuarkus3RewriteJob()
103
105
}
104
106
}
@@ -117,7 +119,7 @@ void setupSpecificBuildChainNightlyJob(String envName, Closure defaultJobParamsG
117
119
118
120
void createSetupBranchJob () {
119
121
def jobParams = JobParamsUtils . getBasicJobParams(this , ' kogito-examples' , JobType . SETUP_BRANCH , " ${ jenkins_path} /Jenkinsfile.setup-branch" , ' Kogito Examples Init branch' )
120
- JobParamsUtils . setupJobParamsDefaultMavenConfiguration (this , jobParams)
122
+ JobParamsUtils . setupJobParamsAgentDockerBuilderImageConfiguration (this , jobParams)
121
123
jobParams. env. putAll([
122
124
JENKINS_EMAIL_CREDS_ID : " ${ JENKINS_EMAIL_CREDS_ID} " ,
123
125
@@ -144,7 +146,7 @@ void createSetupBranchJob() {
144
146
145
147
void setupReleaseDeployJob () {
146
148
def jobParams = JobParamsUtils . getBasicJobParams(this , ' kogito-examples-deploy' , JobType . RELEASE , " ${ jenkins_path} /Jenkinsfile.deploy" , ' Kogito Examples Deploy' )
147
- JobParamsUtils . setupJobParamsDefaultMavenConfiguration (this , jobParams)
149
+ JobParamsUtils . setupJobParamsAgentDockerBuilderImageConfiguration (this , jobParams)
148
150
jobParams. env. putAll([
149
151
PROPERTIES_FILE_NAME : ' deployment.properties' ,
150
152
@@ -186,7 +188,7 @@ void setupReleaseDeployJob() {
186
188
187
189
void setupReleasePromoteJob () {
188
190
def jobParams = JobParamsUtils . getBasicJobParams(this , ' kogito-examples-promote' , JobType . RELEASE , " ${ jenkins_path} /Jenkinsfile.promote" , ' Kogito Examples Promote' )
189
- JobParamsUtils . setupJobParamsDefaultMavenConfiguration (this , jobParams)
191
+ JobParamsUtils . setupJobParamsAgentDockerBuilderImageConfiguration (this , jobParams)
190
192
jobParams. env. putAll([
191
193
PROPERTIES_FILE_NAME : ' deployment.properties' ,
192
194
@@ -222,7 +224,7 @@ void setupReleasePromoteJob() {
222
224
223
225
void setupPostReleaseJob () {
224
226
def jobParams = JobParamsUtils . getBasicJobParams(this , ' kogito-examples-post-release' , JobType . RELEASE , " ${ jenkins_path} /Jenkinsfile.post-release" , ' Kogito Examples Post Release' )
225
- JobParamsUtils . setupJobParamsDefaultMavenConfiguration (this , jobParams)
227
+ JobParamsUtils . setupJobParamsAgentDockerBuilderImageConfiguration (this , jobParams)
226
228
jobParams. env. putAll([
227
229
JENKINS_EMAIL_CREDS_ID : " ${ JENKINS_EMAIL_CREDS_ID} " ,
228
230
@@ -246,7 +248,7 @@ void setupPostReleaseJob() {
246
248
247
249
void setupPrQuarkus3RewriteJob () {
248
250
def jobParams = JobParamsUtils . getBasicJobParamsWithEnv(this , ' kogito-examples.rewrite' , JobType . PULL_REQUEST , ' quarkus-3' , " ${ jenkins_path} /Jenkinsfile.quarkus-3.rewrite.pr" , ' Kogito Examples Quarkus 3 rewrite patch regeneration' )
249
- JobParamsUtils . setupJobParamsDefaultMavenConfiguration (this , jobParams)
251
+ JobParamsUtils . setupJobParamsAgentDockerBuilderImageConfiguration (this , jobParams)
250
252
jobParams. jenkinsfile = " ${ jenkins_path} /Jenkinsfile.quarkus-3.rewrite.pr"
251
253
jobParams. pr. putAll([
252
254
run_only_for_branches : [ " ${ GIT_BRANCH} " ],
@@ -266,7 +268,7 @@ void setupPrQuarkus3RewriteJob() {
266
268
void setupStandaloneQuarkus3RewriteJob () {
267
269
def jobParams = JobParamsUtils . getBasicJobParams(this , ' kogito-examples.quarkus-3.rewrite' , JobType . TOOLS , " ${ jenkins_path} /Jenkinsfile.quarkus-3.rewrite.standalone" , ' Kogito Examples Quarkus 3 rewrite patch regeneration' )
268
270
jobParams. env. putAll(EnvUtils . getEnvironmentEnvVars(this , ' quarkus-3' ))
269
- JobParamsUtils . setupJobParamsDefaultMavenConfiguration (this , jobParams)
271
+ JobParamsUtils . setupJobParamsAgentDockerBuilderImageConfiguration (this , jobParams)
270
272
jobParams. env. putAll([
271
273
AUTHOR_CREDS_ID : " ${ GIT_AUTHOR_CREDENTIALS_ID} " ,
272
274
JENKINS_EMAIL_CREDS_ID : " ${ JENKINS_EMAIL_CREDS_ID} " ,
0 commit comments