[JIRA] (JENKINS-58314) Job-dsl support for organizationFolder: DslFactory

10 views
Skip to first unread message

info@nevalon.de (JIRA)

unread,
Jul 3, 2019, 4:38:02 AM7/3/19
to jenkinsc...@googlegroups.com
Gordon Franke created an issue
 
Jenkins / Bug JENKINS-58314
Job-dsl support for organizationFolder: DslFactory
Issue Type: Bug Bug
Assignee: Unassigned
Components: branch-api-plugin
Created: 2019-07-03 08:37
Labels: job-dsl
Priority: Minor Minor
Reporter: Gordon Franke

I will add the buildStrategies in my job-dsl script

organizationFolder('my-project') {
....
    buildStrategies {
    }
}

Actually it is only supported for branchSource : BranchSourcesContext that i can use with multibranchPipelineJob but not with organizationFolder

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

info@nevalon.de (JIRA)

unread,
Jul 3, 2019, 5:02:02 AM7/3/19
to jenkinsc...@googlegroups.com
Gordon Franke updated an issue
Change By: Gordon Franke
I will add the buildStrategies in my job-dsl script

{code:java}

organizationFolder('my-project') {
....
    buildStrategies {
    }
}
{code}


Actually it is only supported for branchSource : BranchSourcesContext that i can use with multibranchPipelineJob but not with organizationFolder

Workaround is make the change manually and look into the generated xml to manuipulate the xml via configure block
{code:java}
organizationFolder('my-project') {
....
configure {
              // see
              def buildStrategies = it / buildStrategies
              buildStrategies << 'jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl' {
                  ignoreTargetOnlyChanges true
              }
              buildStrategies << 'jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl' {
                  filters {
                     'jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl_-ExactNameFilter' {
                     name 1902
                     caseSensitive false
                     }
                     'jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl_-ExactNameFilter' {
                     name 1907
                     caseSensitive false
                     }
                  }
              }
          }
}
{code}

info@nevalon.de (JIRA)

unread,
Jul 3, 2019, 5:02:02 AM7/3/19
to jenkinsc...@googlegroups.com

info@nevalon.de (JIRA)

unread,
Jul 3, 2019, 5:03:02 AM7/3/19
to jenkinsc...@googlegroups.com
Gordon Franke updated an issue
I will add the buildStrategies in my job-dsl script

{code:java}
organizationFolder('my-project') {
....
    buildStrategies {
    }
}
{code}

Actually it is only supported for branchSource : BranchSourcesContext that i can use with multibranchPipelineJob but not with organizationFolder

Workaround is make the change manually and look into the generated xml to manuipulate the xml via configure block
{code:java}
organizationFolder('my-project') {
    ...
    configure {
              // see
              def buildStrategies = it / buildStrategies
              buildStrategies << 'jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl' {
                  ignoreTargetOnlyChanges true
              }
              buildStrategies << 'jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl' {
                  filters {
                     'jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl_-ExactNameFilter' {
                     name 1902
                     caseSensitive false
                     }
                     'jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl_-ExactNameFilter' {
                     name 1907
                     caseSensitive false
                     }
                  }
              }
          }
}
{code}

mail@daniel-spilker.com (JIRA)

unread,
Jul 3, 2019, 9:38:03 AM7/3/19
to jenkinsc...@googlegroups.com
Change By: Daniel Spilker
Status: Open Fixed but Unreleased
Resolution: Duplicate

mail@daniel-spilker.com (JIRA)

unread,
Mar 11, 2020, 9:02:05 AM3/11/20
to jenkinsc...@googlegroups.com
Change By: Daniel Spilker
Status: Fixed but Unreleased Closed
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages