[JIRA] (JENKINS-50119) Dynamic DSL for workflowMultiBranchProjectFactory not working
Title: Message Title Daniel Spilker closed an issue as Fixed Jenkins / JENKINS-50119 Dynamic DSL for workflowMultiBranchProjectFactory not working Change By: Daniel Spilker Status: Resolved Closed Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-50119) Dynamic DSL for workflowMultiBranchProjectFactory not working
Title: Message Title SCM/JIRA link daemon commented on JENKINS-50119 Re: Dynamic DSL for workflowMultiBranchProjectFactory not working Code changed in jenkins User: Daniel Spilker Path: docs/Home.md job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/workflow/BranchProjectFactoryContext.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/jobs/MultibranchWorkflowJob.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/jobs/MultibranchWorkflowJobSpec.groovy http://jenkins-ci.org/commit/job-dsl-plugin/12f0607735e1fa5c343bddf238cbbd2112315539 Log: fixed problem with factories in multibranchPipelineJob [FIXES JENKINS-50119] Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-50119) Dynamic DSL for workflowMultiBranchProjectFactory not working
Title: Message Title SCM/JIRA link daemon resolved as Fixed Jenkins / JENKINS-50119 Dynamic DSL for workflowMultiBranchProjectFactory not working Change By: SCM/JIRA link daemon Status: Open Resolved Resolution: Fixed Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-50119) Dynamic DSL for workflowMultiBranchProjectFactory not working
Title: Message Title SCM/JIRA link daemon commented on JENKINS-50119 Re: Dynamic DSL for workflowMultiBranchProjectFactory not working Code changed in jenkins User: Daniel Spilker Path: docs/Home.md job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/workflow/BranchProjectFactoryContext.groovy job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/jobs/MultibranchWorkflowJob.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/jobs/MultibranchWorkflowJobSpec.groovy http://jenkins-ci.org/commit/job-dsl-plugin/2b0a2202e53aebf16628bd2fee70971ddd426715 Log: Merge pull request #1119 from daspilker/JENKINS-50119 JENKINS-50119 fixed problem with factories in multibranchPipelineJob Compare: https://github.com/jenkinsci/job-dsl-plugin/compare/43fc5b183877...2b0a2202e53a Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-50119) Dynamic DSL for workflowMultiBranchProjectFactory not working
Title: Message Title Daniel Spilker commented on JENKINS-50119 Re: Dynamic DSL for workflowMultiBranchProjectFactory not working Steven Foster Thanks for investigating this issue. I overlooked the subtle difference between BranchProjectFactory and MultiBranchProjectFactory. And thanks for reporting the problem on master, that would have caused a major regression. Both things are addressed by these PRs: https://github.com/jenkinsci/job-dsl-plugin/pull/1119 https://github.com/jenkinsci/job-dsl-plugin/pull/1120 Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-50119) Dynamic DSL for workflowMultiBranchProjectFactory not working
Title: Message Title Steven Foster commented on JENKINS-50119 Re: Dynamic DSL for workflowMultiBranchProjectFactory not working Nevermind that, I checked out 1.68 instead and the same changes worked fine. I guess recent work on master has temporarily broken multibranchPipelineJobs. Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-50119) Dynamic DSL for workflowMultiBranchProjectFactory not working
Title: Message Title Steven Foster commented on JENKINS-50119 Re: Dynamic DSL for workflowMultiBranchProjectFactory not working I think the issue is multibranchPipelineJob should be using workflowBranchProjectFactory rather than workflowMultiBranchProject factory. I tried to implement it in monkey-see monkey-do fashion by creating a BranchProjectFactory context based on MultiBranchProjectFactoryContext, changing all references to MultiBranchProjectFactory to BranchProjectFactory, updating MultibranchWorkflowJob to use BranchProjectFactory, and updating a test. It's a bit over my head though and I'm hitting issues testing it out. It shows in the api viewer (which 404s in ./gradlew server) but if I try to make any kind of multibranchPipelineJob I get groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method groovy.util.XmlParser#parse. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class java.io.File] [class java.io.InputStream] [class java.io.Reader] [class java.lang.String] [class org.xml.sax.InputSource] at groovy.lang.MetaClassImpl.chooseMostSpecificParams(MetaClassImpl.java:3263) at groovy.lang.MetaClassImpl.chooseMethodInternal(MetaClassImpl.java:3216) at groovy.lang.MetaClassImpl.chooseMethod(MetaClassImpl.java:3159) at groovy.lang.MetaClassImpl.getMethodWithCachingInternal(MetaClassImpl.java:1331) at groovy.lang.MetaClassImpl.createPojoCallSite(MetaClassImpl.java:3391) at org.codehaus.groovy.runtime.callsite.CallSiteArray.createPojoSite(CallSiteArray.java:132) at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite(CallSiteArray.java:166) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) at javaposse.jobdsl.dsl.Folder.getNodeTemplate(Folder.groovy:110) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) at org.codehaus.groovy.runtime.metaclass.MethodMetaProperty$GetBeanMethodMetaProperty.getProperty(MethodMetaProperty.java:76) at org.codehaus.groovy.runtime.callsite.GetEffectivePogoPropertySite.callGroovyObjectGetProperty(GetEffectivePogoPropertySite.java:68) at javaposse.jobdsl.dsl.Item.getNode(Item.groovy:45) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) at org.codehaus.groovy.runtime.metaclass.MethodMetaProperty$GetBeanMethodMetaProperty.getProperty(MethodMetaProperty.java:76) at org.codehaus.groovy.runtime.callsite.GetEffectivePogoPropertySite.callGroovyObjectGetProperty(GetEffectivePogoPropertySite.java:68) at javaposse.jobdsl.dsl.Item.getXml(Item.groovy:34) at
[JIRA] (JENKINS-50119) Dynamic DSL for workflowMultiBranchProjectFactory not working
Title: Message Title Steven Foster created an issue Jenkins / JENKINS-50119 Dynamic DSL for workflowMultiBranchProjectFactory not working Issue Type: Bug Assignee: Daniel Spilker Components: job-dsl-plugin Created: 2018-03-12 14:44 Environment: Job DSL 1.68 Pipeline Multibranch 2.17 Priority: Minor Reporter: Steven Foster When trying to configure the script path for a multibranchPipelineJob using the Dynamic DSL factory { workflowMultiBranchProjectFactory { scriptPath("test/Jenkinsfile") } } The default script path of just "Jenkinsfile" is configured on the generated job. I was initially using the prescribed DSL for github branch source jobs and thought that might have been the problem, but when I moved the branch source configuration to the Dynamic DSL the problem persisted. multibranchPipelineJob('testing/scriptpath') { branchSources { branchSource { source { github { id("test") // Github Enterprise apiUri('https://*/api/v3/') credentialsId('github_token') repoOwner("sfoster") repository("branch_filter_test") } } } } factory { workflowMultiBranchProjectFactory { scriptPath("test/Jenkinsfile") } } }