AOEpeople / gradle-jenkins-job-dsl-plugin

Plugin for easy management of Jenkins Job DSL scripts with Gradle
MIT License
25 stars 12 forks source link

Explicit define Jenkins version in build.gradle #22

Open tomasnorre opened 4 years ago

tomasnorre commented 4 years ago

Add the Jenkins version to the configuration block in build.gradle could be helpful, to ensure which version you are running your tests against.

E.g.

jobDsl {
    sourceDir 'src/jobs'
    resourceDir 'src/configs'
    version = '1.77'
    addRepositories = false
    jenkinsVersion = '2.x.y' 
}
amotl commented 2 years ago

Dear Tomas,

a way to define the Jenkins version by using a resolution strategy has been outlined by @Geethree at https://github.com/AOEpeople/gradle-jenkins-job-dsl-plugin/issues/16#issuecomment-619289458 -- thank you for sharing that workaround!

Until #23 is resolved, it will work up to Jenkins version 2.263.4, see ^1.

With kind regards, Andreas.