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]>:

> 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].
> 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/CANWgJS64LZKR%3Dy8LuVMYJfBRewCZPfRbpyg7PwSd3Af3TaFBpQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to