Re: How to throw an error if a parameter is empty?

2020-07-31 Thread Haibinh Nguyen
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 ch

Jeknins pipeline... output message

2019-10-23 Thread Haibinh Nguyen
Hi All, on the Console Output, i see a lot of message like this: [Pipeline] { (Build) No previous build found... No previous build found... No previous build found... No previous build found... No previous build found... No previous b