Jenkins with Parallel Builds?

2020-01-15 Thread David Aldrich
Hi We build large C++ projects using Jenkins for Linux platforms. These build jobs currently run on a single executor. I want 'make -j' or ninja to compile concurrently on several cores to speed up the build time. How can I cause a job to utilise multiple executors on an agent in this way? I

scripted | declarative | pipeline

2020-01-15 Thread Chandra shekar
Hi Guys,i hope you all doing well. I have a doubt regarding the pipelines(scripted & Declarative).I know the difference of these two pipelines and also i can write scripts in groovy,but my problem is when to use the declarative and when to use scripted pipeline. 1)on which condition we use

Re: Jenkins with Parallel Builds?

2020-01-15 Thread Simon Richter
Hi, On Wed, Jan 15, 2020 at 02:38:26PM +, David Aldrich wrote: > We build large C++ projects using Jenkins for Linux platforms. These build > jobs currently run on a single executor. I want 'make -j' or ninja to > compile concurrently on several cores to speed up the build time. How can >

Re: scripted | declarative | pipeline

2020-01-15 Thread Toni Van de Voorde
Hi Chandra, This sums it right up => https://www.edureka.co/community/54705/difference-between-declarative-pipeline-scripted-pipeliine On Wed, 15 Jan 2020 at 16:05, Chandra shekar wrote: > Hi Guys,i hope you all doing well. > > I have a doubt regarding the pipelines(scripted & Declarative).I

Re: Controlling user Jenkins runs as

2020-01-15 Thread Rony Mathew
Thank You!! It works. On Tuesday, 24 May 2016 20:11:36 UTC-4, Niksan wrote: > > If you're running as a service, change the service settings to run as > whichever user you desire. I think it defaults to user 'system' by default. -- You received this message because you are subscribed to the

Re: Jenkins with Parallel Builds?

2020-01-15 Thread Dirk Heinrichs
Am Mittwoch, den 15.01.2020, 14:38 + schrieb David Aldrich: We build large C++ projects using Jenkins for Linux platforms. These build jobs currently run on a single executor. I want 'make -j' or ninja to compile concurrently on several cores to speed up the build time. How can I cause a

Jenkins @Library load dynamic branch from variable

2020-01-15 Thread Chris Carpenter
Is there a way to dynamically load the library from dynamic branch variable like this: @Library("jenkins-pipeline@${env.BRANCH_NAME}") _ In a multi branch pipeline you have access to the current branch name in the environment variable `BRANCH_NAME`. I'd like to be able to test changes to my

Re: Jenkins @Library load dynamic branch from variable

2020-01-15 Thread Jan Monterrubio
https://jenkins.io/doc/book/pipeline/shared-libraries/ Check the loading dynamic libraries portion. It might do what you want. On Wed, Jan 15, 2020 at 15:12 Chris Carpenter wrote: > Is there a way to dynamically load the library from dynamic branch > variable like this: > >