Re: Skip all stages in jenkins declarative pipeline based on parameter value

2022-10-12 Thread Koray Incki
alternatively, you can write your all stages inside a filename.groovy file, and load it in the Jenkinsfile; where you would check for a parameter value for only once On Thu, Oct 13, 2022 at 8:57 AM pooja pooja wrote: > Hi, > while deploying manually by using gitlab/github credentials code was >

Re: Skip all stages in jenkins declarative pipeline based on parameter value

2022-10-12 Thread pooja pooja
Hi, while deploying manually by using gitlab/github credentials code was deployed correctly, whenever am using jenkins pipeline credentials taking properly but code was no deploying on server Error:fatal : could not read username for 'https://github.com': no such device or address On Wed, Oct 12,

Re: Skip all stages in jenkins declarative pipeline based on parameter value

2022-10-12 Thread Chetan
Hi Umesh, Hope below syntax works. but you need to add this to all stages. stage ('Stage1') { when { environment name: 'ENV_VARIABLE'} steps { echo "Start Stage1" } } Thanks *Chetan B* On Wed, Oct 12, 2022 at 2:41 PM Umesha A wrote: > Hi > >Is it possible to skip al

Skip all stages in jenkins declarative pipeline based on parameter value

2022-10-12 Thread Umesha A
Hi Is it possible to skip all stages of a declarative pipeline if a parameter value is not set ? Appreciate any pointers and help. Thanks & Regards, Umesh -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and