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

613 views
Skip to first unread message

Eric Tan

unread,
Oct 4, 2017, 3:00:37 AM10/4/17
to Jenkins Users
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.


Thanks,
Eric

Daniel Beck

unread,
Oct 4, 2017, 3:13:11 AM10/4/17
to jenkins...@googlegroups.com

> On 4. Oct 2017, at 09:00, Eric Tan <erict...@gmail.com> wrote:
>
> Is it possible to mix declarative and scripted pipeline syntax in one Jenkinsfile ?
>

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

ishan jain

unread,
Oct 5, 2017, 7:21:06 AM10/5/17
to Jenkins Users
Hi,

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

Eric Tan

unread,
Oct 6, 2017, 1:55:03 AM10/6/17
to Jenkins Users
Thanks Daniel and Ishan!
Reply all
Reply to author
Forward
0 new messages