Re: Pipeline with multiple Git repositories - how to checkout and Skip particular Repo

2020-11-22 Thread john levin
You should use git submodules to handle multiple repositories. Check the submodule documentation for more info. /John On Mon, 23 Nov, 2020, 2:15 am Sravya Kancherla, wrote: > > Hi, > > I have Pipeline for multiple Git repositories to checkout and i want to > skip one repo at particular branch

Declarative Pipeline to trigger Job in Post-build actions if condition satisfies

2020-10-07 Thread john levin
Hello Team, Shall we put a if condition in post build actions to trigger other jobs if condition matches. Say for example If date matches Wednesday, trigger the other job in post build actions. /John -- You received this message because you are subscribed to the Google Groups "Jenkins Users"

Re: How to share (non-secret) variables between jobs

2020-09-09 Thread john levin
Oh.. in that case I guess you have to handle it in your scripts only, if the values are dynamically created in one job and you have to pass to another which is not dependant. May be you can check the job status and check if its running and then get some values from logs. On Thu, 10 Sep, 2020, 7:

Re: How to share (non-secret) variables between jobs

2020-09-09 Thread john levin
Simply parsing the required variables while triggering the downstream job. stage ('Invoke_pipelineA') { steps { build job: 'pipelineA', parameters: [ string(name: 'param1', value: "value1") ] } } /BR John On Thu,

Re: Declarative pipeline to use agent as both docker & slave machines with label

2020-08-26 Thread john levin
Hello, The answer is straight forward, I missed somehow. Under agent just include label options pipeline { agent { docker { image 'node:14-alpine' label '' } } Thank you On Wed, 26 Aug, 2020, 6:23 pm john levin, wrote: > > H

Declarative pipeline to use agent as both docker & slave machines with label

2020-08-26 Thread john levin
Hello Everyone I have a scenario like i need to run my CI builds in a container and this container should run on slave machines accordingly (i have same image in all my slave machines). But pipeline is accepting either agent as docker or slave machines. -- You received this message because