Re: Can I load a declarative Jenkinsfile via a shared library?

2018-01-11 Thread Joe Cavanaugh
You have to have the declarative pipeline 1.2 or higher to do this. I am having issues putting the "powershell" keyword in the library... otherwise it seems to work. On Thursday, January 11, 2018 at 1:41:50 AM UTC-6, Idan Adar wrote: > > Indeed possible. See blog post: >

Re: Can I load a declarative Jenkinsfile via a shared library?

2018-01-10 Thread Idan Adar
Any prerequisites? On Wed, Jan 10, 2018 at 8:46 PM, Daniel Butler wrote: > I believe this was added a month or two ago. > > On 10 Jan 2018 6:33 pm, "Idan Adar" wrote: > >> Is the following feasible? >> >> 1. Setup a Shared Library in the Jenkins

Re: Can I load a declarative Jenkinsfile via a shared library?

2018-01-10 Thread Daniel Butler
I believe this was added a month or two ago. On 10 Jan 2018 6:33 pm, "Idan Adar" wrote: > Is the following feasible? > > 1. Setup a Shared Library in the Jenkins settings > 2. In every repository requiring the Jenkinsfile (it is the same one used > in multiple repos...), use the