Webhook should ignore changes in specific directory

2020-09-08 Thread Yogesh B
Hi All, I am using webhook to trigger my declarative pipeline job. I want to ignore the directory in my github project, whenever there is changes/commits to particular directory it should not trigger the build. Apart from that directory it should trigger the build. Is there any way we can achie

Re: Webhook should ignore changes in specific directory

2020-09-08 Thread Gianluca
The only way I found to achieve that it's using "when" expression of "stage" with a function I've built to check if thing changed. when { expression { FSTChangePatterns.any{pattern -> sideCars.areFilesChanged(pattern)} } } Where the areFilesChanged is: // There is a bug in the changeset Jen

Re: Declarative pipeline - Call another Jenkinsfile from pipeline script

2020-09-08 Thread Saravanan Manickam
I am not sure whether I understood completely.. you could have used "when" condition to match the branch and do all the additional steps you want. It'll be clean that way. Regards, Saravanan On Tuesday, September 8, 2020 at 7:27:50 AM UTC+5:30 ashish...@gmail.com wrote: > Dear All, > > Bel

Re: Declarative pipeline - Call another Jenkinsfile from pipeline script

2020-09-08 Thread Gian Maxera
I agree with Saravanan ... and I would also add that there are other two Jenkins features we use for your case. The approach we follow is: - first we try with "when" to run stages conditionally depending on branches/parameters/tags/directory and so on - when we see many times the same piece of code

Re: Declarative pipeline - Call another Jenkinsfile from pipeline script

2020-09-08 Thread Ashish Sharma
Thanks both, let us explore the suggested options. Stay safe. Cheers. On Tue, 8 Sep 2020 at 11:19 PM, Gian Maxera wrote: > > I agree with Saravanan ... and I would also add that there are other two > Jenkins features we use for your case. > The approach we follow is: > - first we try with "when"

Re: UI IllegalArgumentException regarding credentialsId parameter

2020-09-08 Thread benjam...@gdit.com
Maybe this question is published in the wrong forum? On Tuesday, June 23, 2020 at 4:07:49 PM UTC-4 benjam...@gdit.com wrote: > We are able to continue with the job by deleting the secret files and then > re-adding to the job. Until the screen is refreshed the UI configuration > for that job co