Mixing declarative and scripted pipeline syntax in one Jenkinsfile ...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Mixing declarative and scripted pipeline syntax in one Jenkinsfile ...

Eric Tan
Hi,

Is it possible to mix declarative and scripted pipeline syntax in one Jenkinsfile ?

For example, there is no withRun() equivalent in the declarative syntax.

https://issues.jenkins-ci.org/browse/JENKINS-41581

Thanks,
Eric

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2a9d164f-f697-4e00-b43a-6e1214b17b46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Mixing declarative and scripted pipeline syntax in one Jenkinsfile ...

Daniel Beck

> On 4. Oct 2017, at 09:00, Eric Tan <[hidden email]> wrote:
>
> Is it possible to mix declarative and scripted pipeline syntax in one Jenkinsfile ?
>

https://jenkins.io/doc/book/pipeline/syntax/#script

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/776FBCCA-8727-44BA-BB66-5AC758A7EA1C%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Mixing declarative and scripted pipeline syntax in one Jenkinsfile ...

ishan jain
In reply to this post by Eric Tan
Hi,

It is very much possible, as mentioned in the documentation. In fact it is very much required in my case.

On Wednesday, 4 October 2017 09:00:37 UTC+2, Eric Tan wrote:
Hi,

Is it possible to mix declarative and scripted pipeline syntax in one Jenkinsfile ?

For example, there is no withRun() equivalent in the declarative syntax.

<a href="https://issues.jenkins-ci.org/browse/JENKINS-41581" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-41581\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFuVLw6nYlvIr1DjtUruTRGZKkSxA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-41581\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFuVLw6nYlvIr1DjtUruTRGZKkSxA&#39;;return true;">https://issues.jenkins-ci.org/browse/JENKINS-41581

Thanks,
Eric

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/990476d6-9cf2-4b49-a82d-95da59a90fe7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Mixing declarative and scripted pipeline syntax in one Jenkinsfile ...

Eric Tan
In reply to this post by Eric Tan
Thanks Daniel and Ishan!

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ba8c7abc-f098-4912-bd8b-e1287c710de7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.