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 <chenc...@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 jenkinsci-users+unsubscr...@googlegroups.com. > 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAN3%2Bw0Ac-%2Ba%2BgRfSaJ3krZ67P%2Bcw8urgPNhZ%2B4XoTNwb6agcfw%40mail.gmail.com.