Giter Club home page Giter Club logo

bamboo-plan-dsl-example's People

Contributors

mrueegg avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

cattz imclem

bamboo-plan-dsl-example's Issues

Example not working in Bamboo?

It may be I am doing something wrong (learning Groovy), but I can get this example to work in my Bamboo instance:

  1. When running the DSL task with this settings:
  • script location: File
  • source code checkout relative path to the DSL scripts: src/main/groovy/plans/HelloWorldPlan.groovy
    I get an error:
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
  1. I can't get the tests to pass if I use job requirements:
project(key: "PKEY", name: "PrjName" {
       (...)
        stage(name: 'Prepare') {        
            job(key: 'PRE', name: 'Prepare') {
                requirements {
                    requirement(capabilityKey: 'os.linux', matchType: new Requirement.Exists()) {}
                }
            }
         }
        (...)
}

error running tests

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.