gradle-jenkins-plugin icon indicating copy to clipboard operation
gradle-jenkins-plugin copied to clipboard

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

Open andrask opened this issue 9 years ago • 2 comments

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?

andrask avatar Jun 24 '15 14:06 andrask

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?

itavero avatar Oct 13 '15 11:10 itavero

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

andrask avatar Oct 13 '15 14:10 andrask