-
Bug
-
Resolution: Duplicate
-
Minor
-
Platform: Openshift 3.11
Docker image: jenkins/jenkins:2.222-slim
Jenkins 2.222
Job DSL 1.77
Bitbucket Branch Source Plugin 2.7.0
-
-
Declarative backlog
I have a seed job with an input parameter named owner and want to pass its value into a Bitbucket Branch Source Plugin job like this:
organizationFolder('${owner}') { organizations { bitbucket { serverUrl('https://git.mycompany.com') repoOwner('myproject') credentialsId('bitbucket-user') } } }
The script above works. Then I replace myproject with ${owner} and I get this error:
hudson.model.Failure: '$' is an unsafe character at jenkins.model.Jenkins.checkGoodName(Jenkins.java:3998) at javaposse.jobdsl.plugin.JenkinsJobManagement.createOrUpdateConfig(JenkinsJobManagement.java:138)
I also tried with double quotes, hoping that the variable would be resolved as a GString, but then I get:
FATAL: null java.lang.StackOverflowError at sun.reflect.GeneratedMethodAccessor2477.invoke(Unknown Source) 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.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117) at javaposse.jobdsl.dsl.ContextHelper.executeInContext(ContextHelper.groovy:16)
Is this an issue with the job dsl plugin or the Bitbucket branch source plugin?
- duplicates
-
JENKINS-63083 Environment variable doesn't resolve
-
- Resolved
-
[JENKINS-63098] No support for variables inside bitbucket block
Link |
New:
This issue duplicates |
Component/s | New: foo [ 21634 ] | |
Component/s | Original: bitbucket-branch-source-plugin [ 21428 ] | |
Component/s | Original: job-dsl-plugin [ 16720 ] | |
Key |
Original:
|
New:
|
Workflow | Original: JNJira + In-Review [ 242636 ] | New: JNJira [ 245084 ] |
Project | Original: Jenkins [ 10172 ] | New: test [ 10050 ] |
Component/s | New: job-dsl-plugin [ 16720 ] | |
Component/s | Original: foo [ 21634 ] | |
Key |
Original:
|
New:
|
Workflow | Original: JNJira [ 245084 ] | New: JNJira + In-Review [ 245085 ] |
Project | Original: test [ 10050 ] | New: Jenkins [ 10172 ] |
Assignee | Original: Daniel Spilker [ daspilker ] | |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |