Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-59642

implement organizationChildTriggersProperty

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      would be great to configure organizationChildTriggersProperty via CasC, like so maybe?

       

      organizationChildTriggersProperty {
         templates {
           interval('1h')
         }
      }

       

        Attachments

          Issue Links

            Activity

            lifeofguenter Gunter Grodotzki created issue -
            lifeofguenter Gunter Grodotzki made changes -
            Field Original Value New Value
            Component/s branch-api-plugin [ 18621 ]
            Component/s job-dsl-plugin [ 16720 ]
            lifeofguenter Gunter Grodotzki made changes -
            Component/s configuration-as-code-plugin [ 23170 ]
            lifeofguenter Gunter Grodotzki made changes -
            Description would be great to configure organizationChildTriggersProperty via CasC would be great to configure organizationChildTriggersProperty via CasC, like so maybe?


             
            {code:java}
            organizationChildTriggersProperty {
               templates {
                 interval('1h')
               }
            }{code}
             
            ewel Ewelina Wilkosz made changes -
            Assignee Ewelina Wilkosz [ ewel ] Daniel Spilker [ daspilker ]
            broon_nick Nicholas Brown made changes -
            Issue Type New Feature [ 2 ] Bug [ 1 ]
            broon_nick Nicholas Brown made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            daspilker Daniel Spilker made changes -
            Link This issue is blocked by JENKINS-26535 [ JENKINS-26535 ]
            daspilker Daniel Spilker made changes -
            Component/s structs-plugin [ 21442 ]
            daspilker Daniel Spilker made changes -
            Assignee Daniel Spilker [ daspilker ] Gunter Grodotzki [ lifeofguenter ]
            gp8 Gijo made changes -
            Comment [ You may give this a try using DSL configure:

             

            configure { node ->
                 def templates = node / 'properties' / 'jenkins.branch.OrganizationChildHealthMetricsProperty' / templates
                 templates << 'com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric' {                  nonRecursive false    

                }

            }
             configure { node ->
                 def templates = node / 'properties' / 'jenkins.branch.OrganizationChildTriggersProperty' / templates
                 templates << 'com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger' {                spec('* * * * *')

                    interval('300000')    

                }

            }

              ]

              People

              Assignee:
              lifeofguenter Gunter Grodotzki
              Reporter:
              lifeofguenter Gunter Grodotzki
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated: