Discussion:
Mixing declarative and scripted pipeline syntax in one Jenkinsfile ...
Eric Tan
2017-10-04 07:00:37 UTC
Permalink
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 jenkinsci-users+***@googlegroups.com.
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.
Daniel Beck
2017-10-04 07:12:57 UTC
Permalink
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 jenkinsci-users+***@googlegroups.com.
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.
ishan jain
2017-10-05 11:21:05 UTC
Permalink
Hi,

It is very much possible, as mentioned in the documentation. In fact it is
very much required in my case.
Post by 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 jenkinsci-users+***@googlegroups.com.
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.
Eric Tan
2017-10-06 05:55:03 UTC
Permalink
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 jenkinsci-users+***@googlegroups.com.
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.
Loading...