PMurray350355 (Community Member) asked a question.

How do I stop a Jenkins build when the sandbox name is incorrect?

I have a Jenkins pipeline with a veracode scan, and when a developer misspells the sandbox name, I would like for the build to stop completely and run no more stages.

 

Currently, if a developer gets the sandbox name wrong, it displays the message "Error- Returned code from wrapper:2" and continues the build, without throwing any exceptions. Is it possible to stop a build when a developer enters this name wrong?


Topics (1)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.