Hello,

I am trying to create multibranchPipelineJob using DSL. Here is my script:

multibranchPipelineJob('job name') {
    branchSources {
        branchSource {
            source {
                git {
                    remote('git-url')
                    credentialsId('credentialsId')
                }
            }
        }
    }
}


but I get:


Processing DSL script JenkinsItems.groovy
ERROR: (JenkinsItems.groovy, line 44) No signature of method: 
java.lang.String.call() is applicable for argument types: (java.lang.String) 
values: [656567d3-7645-4289-a0dd-fb1ef0f09536]
Possible solutions: wait(), any(), wait(long), split(java.lang.String), 
any(groovy.lang.Closure), each(groovy.lang.Closure)
Finished: FAILURE


Do you have any idea why credentialsId is not accepted?




-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8840de15-21dc-4077-a824-98c8386a8bce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to