git - Jenkins build succeeds even if post build script fails -


i have created jenkins build maven project. build jar using maven git repository , after executes post build script. jar building successful sometimes, post build script fails. after failure of post build script, whole jenkins build marked successful. why ?

i want jenkins build marked failure if post build script fails.

anything need ?

i agree devd, post build step exit code must wrong. if use post build task, can check option make build failing if task not ok.

enter image description here

enter image description here


Comments