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

scriptPath within workflowBranchProjectFactory not shown in groovy code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • implementation 'org.jenkins-ci.main:jenkins-core:2.311'
      implementation 'org.jenkins-ci.plugins:job-dsl-core:1.79'

      When I try to launch an instance of a multibranchWorkflowJob in groovy and I try to define the factory settings for that instance I can't set the path of the jenkinsFile.

       

      And as I see in the documentation of dsl plugin in my local jenkins it is defined but for some reason when I try to code it tells me that is not implemented

      groovy.lang.MissingMethodException: No signature of method: javaposse.jobdsl.dsl.helpers.workflow.BranchProjectFactoryContext.workflowBranchProjectFactory() is applicable for argument types: (e2y.jenkins.v2.jobs.common.MultibranchPipelineBuilder$_build_closure3$_closure15) values: [e2y.jenkins.v2.jobs.common.MultibranchPipelineBuilder$_build_closure3$_closure15@46b861be]
      	at app//javaposse.jobdsl.dsl.AbstractExtensibleContext.methodMissing(AbstractExtensibleContext.groovy:19)
      	at e2y.jenkins.v2.jobs.common.MultibranchPipelineBuilder.build_closure3(MultibranchPipelineBuilder.groovy:57)
      	at e2y.jenkins.v2.jobs.common.MultibranchPipelineBuilder.build_closure3(MultibranchPipelineBuilder.groovy)
      	at app//javaposse.jobdsl.dsl.ContextHelper.executeInContext(ContextHelper.groovy:16)
      	at app//javaposse.jobdsl.dsl.jobs.MultibranchWorkflowJob.factory(MultibranchWorkflowJob.groovy:38)
      	at app//e2y.jenkins.v2.jobs.common.MultibranchPipelineBuilder.build(MultibranchPipelineBuilder.groovy:56)
      	at e2y.jenkins.v2.jobs.common.MultibranchPipelineBuilderSpecification.should have a description(MultibranchPipelineBuilderSpecification.groovy:60)

            Unassigned Unassigned
            kpetrov Kristian Petrov Lazarov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: