@Haibinh is that a bash answer? 
@chencho -- are you looking for a solution in bash, or groovy? Declarative 
or scripted? 





On Friday, July 31, 2020 at 9:16:52 AM UTC-4, Haibinh Nguyen wrote:
>
> Hi, 
> How about this: 
>
> env.FIELD1  = params.FIELD1 
> switch(FIELD1) { 
>     case "ABCD": 
>                 env.p4 = '/usr/bin/p4' 
>                 env.awk = 'awk' 
>      break 
>      case "":: 
>                currentBuild.result = 'SUCCESS' 
>                return 
>      break 
> } 
>
>
> On Fri, Jul 31, 2020 at 12:34 AM chencho m-a <[email protected] 
> <javascript:>> wrote: 
> > 
> > Hi, 
> > 
> > I have some parameters and i would like to check if they are empty, and 
> if so, dont start the build. 
> > 
> > Any clue? 
> > 
> > Thank you 
> > 
> > -- 
> > 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] <javascript:>. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/1c326abd-4cf2-44f3-9480-f1b9f85bcd70n%40googlegroups.com.
>  
>
>

-- 
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/552471d5-c855-44ed-a952-ef515fee2702o%40googlegroups.com.

Reply via email to