
SReddy206817 (Community Member) asked a question.
I have jenkins veracode stage which failed as expected.
The policy status 'Did Not Pass' is not passing.
Error- Returned code from wrapper:4
so I have added that stage in catch error of jenkins here is the code
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
container('maven') {
veracode applicationName: here is verage complete thing
}
}
so after this I receive failed notification for this post stage.
but after this the pipeline continuous to run which does successfully till the last stage then it show build as failure which is not expected for me because I have used catch error.
when I run the same pipeline with removing veracode command with
sh "exit 0"
the veracode stage fails so receives the failure notification and at the end stage success so I receives success notification which is expected.
Thanks
.png)
Hello @SReddy206817 (Community Member),
For this type of inquiry, I would recommend you contact our technical support team. Please include this information, any files related to the scan, and a link to the scan, in order to better assist the engineer who works on this.
Here's how you can log a case:
Jason
Veracode Support Engineer