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 <chen...@gmail.com> 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 jenkins...@googlegroups.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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2dd05e56-7f5b-4ccc-8270-a94a29ad31a1n%40googlegroups.com.