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 ]

          I tried the following;

          properties {
              organizationChildTriggersProperty {
                periodicFolderTrigger {
                  interval('5m')
                }
              }
            }
          

          and got this error:

          19:54:09 ERROR: (bitbucket.groovy, line 61) No signature of method: periodicFolderTrigger() is applicable for argument types:
          

          When I look at job-DSL api guide in my instance `organizationChildTriggersProperty` is listed, but it has no properties listed underneath it.
          Is there perhaps a missing `@DataBoundConstructor` in the code to expose the triggers?
          https://github.com/jenkinsci/branch-api-plugin/blob/master/src/main/java/jenkins/branch/OrganizationChildTriggersProperty.java#L67

          Nicholas Brown added a comment - I tried the following; properties { organizationChildTriggersProperty { periodicFolderTrigger { interval('5m') } } } and got this error: 19:54:09 ERROR: (bitbucket.groovy, line 61) No signature of method: periodicFolderTrigger() is applicable for argument types: When I look at job-DSL api guide in my instance `organizationChildTriggersProperty` is listed, but it has no properties listed underneath it. Is there perhaps a missing `@DataBoundConstructor` in the code to expose the triggers? https://github.com/jenkinsci/branch-api-plugin/blob/master/src/main/java/jenkins/branch/OrganizationChildTriggersProperty.java#L67

          Nicholas Brown added a comment - Looks like someone asked something similar here: https://gitter.im/jenkinsci/configuration-as-code-plugin?at=5d434c8c7a151629e107ea94
          Daniel Spilker made changes -
          Link New: This issue is blocked by JENKINS-26535 [ JENKINS-26535 ]

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

              Created:
              Updated: