Re: Trying to use Global Shared Groovy in Pipelines - ERROR: Could not find any definition of libraries [mylib]

2020-08-17 Thread Devin Nusbaum
This sounds like JENKINS-60245 . There is a proposed fix, but I have not had time to review it. Is this something you had working previously, and it was broken by an update or something, or are you just trying it for the first time? You migh

Trying to use Global Shared Groovy in Pipelines - ERROR: Could not find any definition of libraries [mylib]

2020-08-17 Thread Randall Becker
I'm having some difficulty with global shared groovy libraries in pipelines (Jenkins 2.242, with Pipeline:Groovy Shared Libraries 2.16) and could use a swift kick in the proper direction. I've configured a local bare git repository using it's path in the System Configuration, which correctly re

Re: Pipeline equivalent of the elastic axis plugin

2020-08-17 Thread Mark Waite
On Mon, Aug 17, 2020 at 8:08 AM Sébastien Hinderer < sebastien.hinde...@ens-lyon.org> wrote: > Dear Mark, > > Many thakns for your contribution! I think I did find a plugin that was > able to "ignore" the off-line nodes when running a job, that was really > convenient. I can probably find it again

Re: Triggering builds from changes in sub-directories using Github Branch Source

2020-08-17 Thread Jonathan Ballet
On Mon, 17 Aug 2020, at 17:59, Gianluca wrote: > > > Il giorno lunedì 17 agosto 2020 alle 16:54:26 UTC+1 j...@multani.info ha > scritto: >> On Tuesday, 11 August 2020 at 15:55:17 UTC+2 Gianluca wrote: >>> Hi, >>> yes ... we do. >>> >>> We have various Jenkinsfile in sub-directories and differ

Re: Triggering builds from changes in sub-directories using Github Branch Source

2020-08-17 Thread Gianluca
Il giorno lunedì 17 agosto 2020 alle 16:54:26 UTC+1 j...@multani.info ha scritto: > On Tuesday, 11 August 2020 at 15:55:17 UTC+2 Gianluca wrote: > >> Hi, >> yes ... we do. >> >> We have various Jenkinsfile in sub-directories and different pipelines. >> >> This is how we did it: >> - we have one

Re: Triggering builds from changes in sub-directories using Github Branch Source

2020-08-17 Thread Jonathan Ballet
On Tuesday, 11 August 2020 at 15:55:17 UTC+2 Gianluca wrote: > Hi, > yes ... we do. > > We have various Jenkinsfile in sub-directories and different pipelines. > > This is how we did it: > - we have one Multibranch project for each Jenkinsfile and in the > configuration we specify which Jenkinsfi

Re: Pipeline design question

2020-08-17 Thread Sébastien Hinderer
Deear Jérôme, I really wanted to thank you for having taken the time to share both abstract ideas, an overall view of your architecture, and also very valuable code. To tell you the truth, it didn't help me to become friend with all this Groovy soup, but this is by no means your fault and I am on

Re: Piple line for multiple projects sharing the same SVN repository

2020-08-17 Thread jeremy mordkoff
I'm having a little trouble understanding exactly what you are asking. I think you are asking if it is possible to trigger multiple builds in a single workspace. If you use a single pipeline, this is trivial. So perhaps you should consider writing a single pipeline that iterates over all libra

Re: Pipeline equivalent of the elastic axis plugin

2020-08-17 Thread Sébastien Hinderer
Dear Mark, Many thakns for your contribution! I think I did find a plugin that was able to "ignore" the off-line nodes when running a job, that was really convenient. I can probably find it again if that heps you, just let me know. Many thanks for your help on the topic of the message. To be hone

Re: Pipeline equivalent of the elastic axis plugin

2020-08-17 Thread Mark Waite
On Mon, Aug 17, 2020 at 12:26 AM Sébastien Hinderer < sebastien.hinde...@ens-lyon.org> wrote: > Dear all, > > In our legacy matrix jobs we use the elastic axis plugin quite a lot. > > This plugin creates a matrix axis from a label: all the nodes with the > given label will be on the axis and thus

RE: Newbie questions about the declarative syntax

2020-08-17 Thread Jérôme Godbout
There is many things that work in Groovy that doesn't in Pipeline scripting. Also the scripts approval for string manipulation and all those nightmare ish behavior make it trial and error to write something that actually work. Often I end up doing ugly for loop just because foreach and the like