On Tue, Aug 2, 2016 at 11:53 AM, Ioannis Canellos wrote:
> And how do I wrap a snippet like this inside a jenkins plugin?
See `docker-workflow` for an example of `GroovyShellDecorator`.
Probably a higher-level API will be introduced in the future.
--
You received this
And how do I wrap a snippet like this inside a jenkins plugin?
On Tuesday, August 2, 2016 at 4:01:26 PM UTC+3, Baptiste Mathus wrote:
>
> Live example:
>
> https://github.com/jenkinsci/jenkins/blob/master/Jenkinsfile#L184L190
>
> Cheers
>
> Le 2 août 2016 2:56 PM, "Adrien Lecharpentier"
Live example:
https://github.com/jenkinsci/jenkins/blob/master/Jenkinsfile#L184L190
Cheers
Le 2 août 2016 2:56 PM, "Adrien Lecharpentier" <
adrien.lecharpent...@gmail.com> a écrit :
> Hi,
>
> you could create a function take a clojure in parameter and use it. For
> example:
>
> def
Hi all,
I have a couple of pipeline steps that I want to have the combined as one.
For example I have the 'configure' step which returns a label and I want to
combine it with the node step as follows:
label = configure()
node(label) {
...
}
So, what I want is to create an alternative of node,
Hi,
you could create a function take a clojure in parameter and use it. For
example:
def myenvironment(def body) {
def label = configure()
node(label) {
body.call()
}
}
and use it like
myenvironment {
sh "make"
}
Le mar. 2 août 2016 à 14:51, Ioannis Canellos a