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 <[email protected]> wrote: > 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, 2022 at 3:23 PM Chetan <[email protected]> wrote: > >> 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 <[email protected]> wrote: >> >>> 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 stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/jenkinsci-users/f28bf765-cbe7-4525-a2c2-68863debafcfn%40googlegroups.com >>> <https://groups.google.com/d/msgid/jenkinsci-users/f28bf765-cbe7-4525-a2c2-68863debafcfn%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/CA%2B6q8-4zypybqp3wruxPmZVb4nNUD-h6JF2CunXnJe6navesXg%40mail.gmail.com >> <https://groups.google.com/d/msgid/jenkinsci-users/CA%2B6q8-4zypybqp3wruxPmZVb4nNUD-h6JF2CunXnJe6navesXg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/CANJUvtwW%2BnsF_3diFfEpmZaU5OnmXNyHdHoqu9Hgs7rJCxZqrw%40mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-users/CANJUvtwW%2BnsF_3diFfEpmZaU5OnmXNyHdHoqu9Hgs7rJCxZqrw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Koray Incki, PhD @: [email protected] web: http://www.korayincki.com twit: @korayincki *"It is quality rather than quantity that matters"* *Lucius Annaeus Seneca* -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA%2B2Tnoo9M7Cp7rxGyo83v%2BoQkG5VrqR%3DLDCKyyZF88qyUgA6pg%40mail.gmail.com.
