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.

Reply via email to