
PM148006 (Community Member) asked a question.
We are using Veracode Plugin in Jenkins and calling it in our declarative pipeline using withCredentials() function. I have set canFailJob flag to true, still the job won't fail when an issue with Veracode UploadAndScan app_id not found. Please help us get the error log to direct our Jenkins Pipeline not continue to next step.
This is my Jenkins script.
withCredentials([usernamePassword(credentialsId: 'veracode-credentials',
passwordVariable: 'veracode_password',
usernameVariable: 'veracode_username')]) {
veracode applicationName: "$PROFILE",
canFailJob: true,
createSandbox: true,
criticality: "${CRITICALITY}",
debug: true,
fileNamePattern: '**/**veracode-package.zip',
replacementPattern: '',
sandboxName: 'Sandbox-Scans',
scanExcludesPattern: '',
scanIncludesPattern: '',
scanName: "${SCAN_NAME}",
teams: '',
uploadExcludesPattern: '',uploadIncludesPattern: '**/**veracode-package.zip',
vid: veracode_username,
vkey: veracode_password,
waitForScan: false
}
The error I get is
[20.07.13 03:02:42] An app_id could not be located for application profile "TEST-APP".
[20.07.13 03:02:42] UploadAndScan failure.
Error- Returned code from wrapper:2
Please direct me to catch this exception or error from log.
Thanks.
.png)
Hi @PM148006 (Community Member) ,
I would recommend you contact our technical support team. Here's how you can log a case:
1. Navigate to the upper right corner of any page in the Community, click on your user avatar.
2. Select Contact Support from the drop-down menu.
Thank you,
Boy Baukema