Hi Guys, Are you aware of anything else lined up(other than the editor) that will only support declarative in the future? Reason I ask is, we already have some "scripted" pipelines. Maybe we need to consider rewriting them if Jenkins road-map indicates a shift towards declarative. Also if my pipeline is "Declarative" can it use an existing shared library that is "scripted"?
On Wednesday, 29 March 2017 02:15:52 UTC+5:30, Baptiste Mathus wrote: > > Well, yes, you can use Shared Libraries with Declarative. Example: > https://jenkins.io/blog/2017/02/15/declarative-notifications/ > > 2017-03-22 3:56 GMT+01:00 Cuong Tran <[email protected] <javascript:>>: > >> The declarative option is nice but you will lose the ability to extract >> out reusable code via the shared library. For example, you can't do this >> yet: >> >> MyCompanyStandardPipeline { >> ... // which will plugin standard sections... >> } >> >> On Thursday, March 16, 2017 at 8:55:48 PM UTC-7, Nick Le Mouton wrote: >>> >>> Hi, >>> >>> I'm just getting my head around pipeline as code and have converted my >>> previous Jenkins job/ant build targets to a Jenkinsfile. As I was looking >>> for documentation on the Jenkins site, I'm seeing mentions of declarative >>> pipelines and it differs from what I've written. >>> >>> Which method should I be looking to use (especially with blue ocean)? >>> Declarative or scripted? Why should I be using one over the other? >>> >>> Can I also get some feedback on my Jenkinsfile ( >>> https://gist.github.com/NoodlesNZ/bf9b50cab82093097796d354e37083f0)? >>> It's hard to find examples beyond "hello world"/simple pipelines. >>> >>> Thanks >>> >> -- >> 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 [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/fdd17e1a-35fa-41b2-bd16-e5c136a456f8%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jenkinsci-users/fdd17e1a-35fa-41b2-bd16-e5c136a456f8%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e5e5db27-80d1-422e-b6ec-c3a78db77793%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
