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

Missing DSL for NoTriggerOrganizationFolderProperty

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      While trying the implement DSL configuration using Bitbucket Branch, I'm not able to implement NoTriggerOrganizationFolderProperty propertie.

      ERROR: (script, line 5) No signature of method: javaposse.jobdsl.dsl.helpers.properties.FolderPropertiesContext.NoTriggerOrganizationFolderProperty() is applicable for argument types: (script$_run_closure1$_closure2$_closure4) values: [script$_run_closure1$_closure2$_closure4@2693f37a]
      

      NoTriggerOrganizationFolderProperty is not available on DSL API.

      Manually configured Bitbucket Branch based build config.xml file:

      <jenkins.branch.OrganizationFolder plugin="branch-api@2.0.15">
        <actions/>
        <description></description>
        <properties>
          <jenkins.branch.NoTriggerOrganizationFolderProperty>
            <branches></branches>
          </jenkins.branch.NoTriggerOrganizationFolderProperty>
        </properties>
      ...
      

       Test DSL script:

      organizationFolder('My DSL Folder test'){
          displayName('my_display_name')
          description('my_description')
          properties{
              NoTriggerOrganizationFolderProperty{
                  branches('')
              }
          }
          organizations {
              bitbucket {
                  repoOwner('my_repo_code')
                  credentialsId('my_cred_id')
                  serverUrl('my_server_url')
              }
          }
      }
      

      This seems a case of missing DSL configuration but not sure by which component.

        Attachments

          Activity

          ncosta Nuno Costa created issue -
          ncosta Nuno Costa made changes -
          Field Original Value New Value
          Description While trying the implement DSL configuration using Bitbucket Branch, I'm not able to implement {{NoTriggerOrganizationFolderProperty}} propertie.
          {noformat}
          ERROR: (script, line 5) No signature of method: javaposse.jobdsl.dsl.helpers.properties.FolderPropertiesContext.NoTriggerOrganizationFolderProperty() is applicable for argument types: (script$_run_closure1$_closure2$_closure4) values: [script$_run_closure1$_closure2$_closure4@2693f37a]
          Finished: FAILURE{noformat}
          {{NoTriggerOrganizationFolderProperty}} is not available on [DSL API|https://jenkinsci.github.io/job-dsl-plugin/].

          Manually configured Bitbucket Branch based build config.xml file:
          {code:java}
          <jenkins.branch.OrganizationFolder plugin="branch-api@2.0.15">
            <actions/>
            <description></description>
            <properties>
              <jenkins.branch.NoTriggerOrganizationFolderProperty>
                <branches></branches>
              </jenkins.branch.NoTriggerOrganizationFolderProperty>
            </properties>
          ...
          {code}
           Test DSL script:
          {code:java}
          organizationFolder('My DSL Folder test'){
              displayName('my_display_name')
              description('my_description')
              properties{
                  NoTriggerOrganizationFolderProperty{
                      branches('')
                  }
              }
              organizations {
                  bitbucket {
                      repoOwner('my_repo_code')
                      credentialsId('my_cred_id')
                      serverUrl('my_server_url')
                  }
              }
          }
          {code}
          This seems a case of missing DSL configuration but not sure by which component.
          While trying the implement DSL configuration using Bitbucket Branch, I'm not able to implement {{NoTriggerOrganizationFolderProperty}} propertie.
          {noformat}
          ERROR: (script, line 5) No signature of method: javaposse.jobdsl.dsl.helpers.properties.FolderPropertiesContext.NoTriggerOrganizationFolderProperty() is applicable for argument types: (script$_run_closure1$_closure2$_closure4) values: [script$_run_closure1$_closure2$_closure4@2693f37a]{noformat}
          {{NoTriggerOrganizationFolderProperty}} is not available on [DSL API|https://jenkinsci.github.io/job-dsl-plugin/].

          Manually configured Bitbucket Branch based build config.xml file:
          {code:java}
          <jenkins.branch.OrganizationFolder plugin="branch-api@2.0.15">
            <actions/>
            <description></description>
            <properties>
              <jenkins.branch.NoTriggerOrganizationFolderProperty>
                <branches></branches>
              </jenkins.branch.NoTriggerOrganizationFolderProperty>
            </properties>
          ...
          {code}
           Test DSL script:
          {code:java}
          organizationFolder('My DSL Folder test'){
              displayName('my_display_name')
              description('my_description')
              properties{
                  NoTriggerOrganizationFolderProperty{
                      branches('')
                  }
              }
              organizations {
                  bitbucket {
                      repoOwner('my_repo_code')
                      credentialsId('my_cred_id')
                      serverUrl('my_server_url')
                  }
              }
          }
          {code}
          This seems a case of missing DSL configuration but not sure by which component.
          ncosta Nuno Costa made changes -
          Description While trying the implement DSL configuration using Bitbucket Branch, I'm not able to implement {{NoTriggerOrganizationFolderProperty}} propertie.
          {noformat}
          ERROR: (script, line 5) No signature of method: javaposse.jobdsl.dsl.helpers.properties.FolderPropertiesContext.NoTriggerOrganizationFolderProperty() is applicable for argument types: (script$_run_closure1$_closure2$_closure4) values: [script$_run_closure1$_closure2$_closure4@2693f37a]{noformat}
          {{NoTriggerOrganizationFolderProperty}} is not available on [DSL API|https://jenkinsci.github.io/job-dsl-plugin/].

          Manually configured Bitbucket Branch based build config.xml file:
          {code:java}
          <jenkins.branch.OrganizationFolder plugin="branch-api@2.0.15">
            <actions/>
            <description></description>
            <properties>
              <jenkins.branch.NoTriggerOrganizationFolderProperty>
                <branches></branches>
              </jenkins.branch.NoTriggerOrganizationFolderProperty>
            </properties>
          ...
          {code}
           Test DSL script:
          {code:java}
          organizationFolder('My DSL Folder test'){
              displayName('my_display_name')
              description('my_description')
              properties{
                  NoTriggerOrganizationFolderProperty{
                      branches('')
                  }
              }
              organizations {
                  bitbucket {
                      repoOwner('my_repo_code')
                      credentialsId('my_cred_id')
                      serverUrl('my_server_url')
                  }
              }
          }
          {code}
          This seems a case of missing DSL configuration but not sure by which component.
          While trying the implement DSL configuration using Bitbucket Branch, I'm not able to implement {{NoTriggerOrganizationFolderProperty}} propertie.
          {code:java}
          ERROR: (script, line 5) No signature of method: javaposse.jobdsl.dsl.helpers.properties.FolderPropertiesContext.NoTriggerOrganizationFolderProperty() is applicable for argument types: (script$_run_closure1$_closure2$_closure4) values: [script$_run_closure1$_closure2$_closure4@2693f37a]
          {code}
          {{NoTriggerOrganizationFolderProperty}} is not available on [DSL API|https://jenkinsci.github.io/job-dsl-plugin/].

          Manually configured Bitbucket Branch based build config.xml file:
          {code:java}
          <jenkins.branch.OrganizationFolder plugin="branch-api@2.0.15">
            <actions/>
            <description></description>
            <properties>
              <jenkins.branch.NoTriggerOrganizationFolderProperty>
                <branches></branches>
              </jenkins.branch.NoTriggerOrganizationFolderProperty>
            </properties>
          ...
          {code}
           Test DSL script:
          {code:java}
          organizationFolder('My DSL Folder test'){
              displayName('my_display_name')
              description('my_description')
              properties{
                  NoTriggerOrganizationFolderProperty{
                      branches('')
                  }
              }
              organizations {
                  bitbucket {
                      repoOwner('my_repo_code')
                      credentialsId('my_cred_id')
                      serverUrl('my_server_url')
                  }
              }
          }
          {code}
          This seems a case of missing DSL configuration but not sure by which component.
          jamesdumay James Dumay made changes -
          Epic Link JENKINS-48351 [ 186945 ]
          Hide
          ncosta Nuno Costa added a comment -

          Workaround using configure block:

          configure { organizationFolder ->
                  organizationFolder / 'properties' << 'jenkins.branch.NoTriggerOrganizationFolderProperty'{
                      branches('')
                  }
              }
          
          Show
          ncosta Nuno Costa added a comment - Workaround using configure block: configure { organizationFolder ->         organizationFolder / 'properties' << 'jenkins.branch.NoTriggerOrganizationFolderProperty' {             branches('')         }     }
          Hide
          daspilker Daniel Spilker added a comment -

          This is supported by the Automatically Generated DSL:

          organizationFolder('example') {
              properties {
                  noTriggerOrganizationFolderProperty {
                      branches('test')
                  }
              }
          }
          
          Show
          daspilker Daniel Spilker added a comment - This is supported by the Automatically Generated DSL : organizationFolder( 'example' ) {     properties {         noTriggerOrganizationFolderProperty {             branches( 'test' )         }     } }
          daspilker Daniel Spilker made changes -
          Assignee Stephen Connolly [ stephenconnolly ] Daniel Spilker [ daspilker ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          daspilker Daniel Spilker made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            Assignee:
            daspilker Daniel Spilker
            Reporter:
            ncosta Nuno Costa
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: