This is an automated email from the ASF dual-hosted git repository.
jstastnycz pushed a commit to branch radtriste-fix-pipelines
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git
The following commit(s) were added to refs/heads/radtriste-fix-pipelines by
this push:
new bc8fcbf9 parameterize PR check job folder
bc8fcbf9 is described below
commit bc8fcbf95570bfbd014de45dbefb0a29db7241ce
Author: jstastny-cz <[email protected]>
AuthorDate: Wed Nov 8 10:21:11 2023 +0100
parameterize PR check job folder
---
.../src/main/groovy/org/kie/jenkins/jobdsl/KogitoJobTemplate.groovy | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/dsl/seed/src/main/groovy/org/kie/jenkins/jobdsl/KogitoJobTemplate.groovy
b/dsl/seed/src/main/groovy/org/kie/jenkins/jobdsl/KogitoJobTemplate.groovy
index 44b2e808..f7c2ceed 100644
--- a/dsl/seed/src/main/groovy/org/kie/jenkins/jobdsl/KogitoJobTemplate.groovy
+++ b/dsl/seed/src/main/groovy/org/kie/jenkins/jobdsl/KogitoJobTemplate.groovy
@@ -466,11 +466,11 @@ class KogitoJobTemplate {
return
"(.*${RegexUtils.getRegexFirstLetterCase('jenkins')},?.*(rerun|run)
${idStr}${testType}.*)"
}
- static def createPullRequestMultibranchPipelineJob(def script, String
jenkinsFilePath = '.ci/jenkins/Jenkinsfile') {
+ static def createPullRequestMultibranchPipelineJob(def script, String
jenkinsFilePath = '.ci/jenkins/Jenkinsfile', String
folderName='pullrequest_jobs') {
String jobName = "${Utils.getJobDisplayName(script)}-pr"
PrintUtils.debug(script, "Create pull request multibranch job
${jobName}")
- script.folder('pullrequest_jobs')
- return
script.multibranchPipelineJob("pullrequest_jobs/${Utils.getJobDisplayName(script)}-pr")?.with
{
+ script.folder(folderName)
+ return
script.multibranchPipelineJob("${folderName}/${Utils.getJobDisplayName(script)}-pr")?.with
{
triggers {
periodicFolderTrigger {
// The maximum amount of time since the last indexing that
is allowed to elapse before an indexing is triggered.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]