SReddy206817 (Community Member) asked a question.

Veracode scan failed as in catch error of jenkins but still at the end bulid is showing as failure.

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


SReddy206817 likes this.
  • 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:

    1. Navigate to the upper right corner of any page in the Community, and click on your user avatar.
    2. Select Contact Support from the drop-down menu. 

     

    Jason

    Veracode Support Engineer

    Expand Post

Topics (7)

No articles found
Loading

Ask the Community

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