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

Re: jenkins issue

2022-10-12 Thread pooja pooja
I tried above videos and whatever suggestion avaialable in google but still am getting same issue On Wed, Oct 12, 2022, 2:22 PM Iván Fernández Calvo wrote: > You do not pass any credentials around the script in the pipeline, > So the command “git pull” failed because does not have a way to > au

Re: jenkins issue

2022-10-12 Thread Iván Fernández Calvo
You do not pass any credentials around the script in the pipeline,So the command “git pull” failed because does not have a way to authenticate. Check the article and the video of my previous message, there is explained how to pass credentials to your script.El 12 oct 2022, a las 8:13, pooja pooja