-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: bitbucket-branch-source-plugin, branch-api-plugin, job-dsl-plugin
-
None
-
Environment:Jenkins 2.92, bitbucket-branch 2.2.7, cloudbees-folder 6.2.1, job-dsl 1.66, branch-api 2.0.15
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.