mibexsoftware / bamboo-plan-dsl-plugin

Configuration as code with a Groovy-based DSL or YAML for Atlassian Bamboo.
https://marketplace.atlassian.com/plugins/ch.mibex.bamboo.plandsl/
Other
40 stars 16 forks source link

Dependencies stage is not working with DSL plan #95

Open KidaneYosief opened 5 years ago

KidaneYosief commented 5 years ago

I am having a hard time to create the Dependencies using the DSL plan, in the console, I am getting an error that says :-

simple 05-Aug-2019 13:04:15 Plan DSL: created or updated tasks in 'Plan-Jcl-Job' error 05-Aug-2019 13:04:15 Plan DSL: task failed: Could not parse key 'PROJECTKEY' error 05-Aug-2019 13:04:15 java.lang.IllegalArgumentException: Could not parse key 'PROJECTKEY' error 05-Aug-2019 13:04:15 at com.atlassian.bamboo.plan.PlanKeys.getPlanKey(PlanKeys.java:245) error 05-Aug-2019 13:04:15 at com.atlassian.bamboo.plan.PlanKeys$getPlanKey$1.call(Unknown Source) error 05-Aug-2019 13:04:15 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) error 05-Aug-2019 13:04:15 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) error 05-Aug-2019 13:04:15 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) error 05-Aug-2019 13:04:15 at ch.mibex.bamboo.plandsl.plugin.services.PlanService$_createOrUpdatePlanOptions_closure8.doCall(PlanService.groovy:188) error 05-Aug-2019 13:04:15 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) error 05-Aug-2019 13:04:15 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) error 05-Aug-2019 13:04:15 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) error 05-Aug-2019 13:04:15 at java.lang.reflect.Method.invoke(Method.java:498) error 05-Aug-2019 13:04:15 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) error 05-Aug-2019 13:04:15 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) error 05-Aug-2019 13:04:15 at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294) error 05-Aug-2019 13:04:15 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1021) error 05-Aug-2019 13:04:15 at groovy.lang.Closure.call(Closure.java:426) error 05-Aug-2019 13:04:15 at groovy.lang.Closure.call(Closure.java:442) error 05-Aug-2019 13:04:15 at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:3170) error 05-Aug-2019 13:04:15 at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:3140) error 05-Aug-2019 13:04:15 at org.codehaus.groovy.runtime.dgm$66.invoke(Unknown Source) error 05-Aug-2019 13:04:15 at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274) error 05-Aug-2019 13:04:15 at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56) error 05-Aug-2019 13:04:15 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) error 05-Aug-2019 13:04:15 at ch.mibex.bamboo.plandsl.plugin.services.PlanService.createOrUpdatePlanOptions(PlanService.groovy:188)

Where the the key I put was projectkey and plankey, but it stopped at the first level for and gave me an error.

        dependencies {
            blockingStrategy DependencyBlockingStrategy.BLOCK_BUILD_IF_PARENT_BUILDS_ARE_QUEUED
            advancedOptions {
                triggerDependenciesOnlyWhenAllStagesHaveRunSuccessfully true
                autoDependencyManagement true
                enableDependenciesForAllBranches false
            }
            childPlans 'TCSES', 'TCSESICB'
        }