mibexsoftware / bamboo-plan-dsl-example Goto Github PK
View Code? Open in Web Editor NEWAn example project for writing plan DSL scripts in IntelliJ with testing support
An example project for writing plan DSL scripts in IntelliJ with testing support
It may be I am doing something wrong (learning Groovy), but I can get this example to work in my Bamboo instance:
src/main/groovy/plans/HelloWorldPlan.groovy
Plan DSL: task failed: startup failed:file:/workspace/PROJ-PLAN-JOB1/src/main/groovy/plans/HelloWorldPlan.groovy: 3: unable to resolve class dsls.utilities.MyUtility @ line 3, column 1. import dsls.utilities.MyUtility
project(key: "PKEY", name: "PrjName" {
(...)
stage(name: 'Prepare') {
job(key: 'PRE', name: 'Prepare') {
requirements {
requirement(capabilityKey: 'os.linux', matchType: new Requirement.Exists()) {}
}
}
}
(...)
}
When I run the build
gradle task, I get this error when it runs the tests:
Expected no exception to be thrown, but got 'ch.mibex.bamboo.plandsl.dsl.DslException'
at spock.lang.Specification.noExceptionThrown(Specification.java:118)
at DslScriptSpec.test DSL script #file.name(DslScriptSpec.groovy:17)
Caused by: ch.mibex.bamboo.plandsl.dsl.DslException: startup failed:
script14883704429461770718090.groovy: 1: unable to resolve class utilities.MyUtility
@ line 1, column 1.
import utilities.MyUtility
^
1 error
at ch.mibex.bamboo.plandsl.dsl.DslScriptParserImpl.parse(DslScriptParserImpl.groovy:39)
at DslScriptSpec.test DSL script #file.name(DslScriptSpec.groovy:14)
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
script14883704429461770718090.groovy: 1: unable to resolve class utilities.MyUtility
@ line 1, column 1.
import utilities.MyUtility
^
1 error
at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:946)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:593)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:542)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:254)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:211)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:221)
at ch.mibex.bamboo.plandsl.dsl.DslScriptParserImpl.parseScript(DslScriptParserImpl.groovy:59)
at ch.mibex.bamboo.plandsl.dsl.DslScriptParserImpl.parse(DslScriptParserImpl.groovy:36)
... 1 more
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.