ghale / gradle-jenkins-plugin

Gradle plugin to programmatically configure Jenkins jobs.
123 stars 42 forks source link

Is there any way to provide parameters to included dsl files? #59

Open andrask opened 9 years ago

andrask commented 9 years ago

In my gradle build I use the

    dsl fileTree('scripts').include('*.dsl')

method to include the dsls of jobs. Now the issue I'm facing is that I cannot reach the properties defined on the project like I would if I inlined the job.

What is the method of passing an environment to the dsl files?

itavero commented 8 years ago

I would like to know this too. Specifically passing entire objects would interest me (instead of just regular "string" parameters).

@Andrask did you manage to achieve this?

andrask commented 8 years ago

No, I tried many ways, even checked the corresponding code, but there doesn't seem to be any sane way to do it.