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

       

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

       

          [JENKINS-59642] implement organizationChildTriggersProperty

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


           
          {code:java}
          organizationChildTriggersProperty {
             templates {
               interval('1h')
             }
          }{code}
           
          Ewelina Wilkosz made changes -
          Assignee Original: Ewelina Wilkosz [ ewel ] New: Daniel Spilker [ daspilker ]
          Nicholas Brown made changes -
          Issue Type Original: New Feature [ 2 ] New: Bug [ 1 ]
          Nicholas Brown made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Daniel Spilker made changes -
          Link New: This issue is blocked by JENKINS-26535 [ JENKINS-26535 ]
          Daniel Spilker made changes -
          Component/s New: structs-plugin [ 21442 ]
          Daniel Spilker made changes -
          Assignee Original: Daniel Spilker [ daspilker ] New: Günter Grodotzki [ lifeofguenter ]
          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')    

              }

          }

            ]

            lifeofguenter Günter Grodotzki
            lifeofguenter Günter Grodotzki
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: