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

Multiple times linkedRepository #1

Closed dakue closed 8 years ago

dakue commented 8 years ago

Hello,

I'm using a DSL which looks nearly like:

project('MYPROJECT') {
    name 'My project'

    plan('MYPLAN') {
        name 'My plan'

       scm {
          linkedRepository('repository-one')
          linkedRepository('repository-two')
       }

        stage('My stage') {
            description 'My stage'
            manual false

            job('BUILD') {
                name 'Maven build job'

                tasks {
                   checkout('checkout repository-one') {
                        repository('repository-one') {}
                    }

                    checkout('repository-two') {
                        repository('repository-two') {
                            checkoutDirectory 'two'
                        }
                    }
                }
            }
        }
    }
}

When the 'Seed' task uses this plan I get the error message:

failed due to an error in the provided DSL script(s). Details: (TransactionTemplate.java:133): could not find a repository for repository-two

Kind regards,

Daniel

mrueegg commented 8 years ago

Hi Daniel,

Thanks for your bug report. I was able to fix the bug. I will release a new plug-in version today and reply here once it is out.

mrueegg commented 8 years ago

Fixed with release 1.2.1. Thanks for reporting this bug!