when directive is to execute if stage should be executed or not. You might
have when directive at wrong place. Please refer to document for more
details - -https://www.jenkins.io/doc/book/pipeline/syntax/#when
On Fri, May 8, 2020 at 5:40 PM MANISH JOSHI
wrote:
> Please help out
>
>
Please help out
java.lang.NoSuchMethodError: No such DSL method 'when' found among steps
[archive, bat, build, catchError, checkout, deleteDir, dir,
dockerFingerprintFrom, dockerFingerprintRun, echo, emailext,
emailextrecipients, envVarsForTool, error, fileExists, findBuildScans,