Closed maryamghani closed 10 years ago
I'm trying to scan my file by veracode from jenkins but I received this error
I think it's unable to locate the directory "/mydirectory/" in your jenkins workspace. I would try editing the config to include a specific file that you know exists in your workspace, and then you can start using wildcards or a comma delimited list for all files you want to submit for the scan.
actually the file is existing in my workspace and also I just have one file to scan without any comma after . it is like this : file to scan : **/myjarfile.jar
Hmm... the file to scan property looks good to me. So with that value, are you still getting the same error? Do you still see the following line in the error output:
Caused by: java.io.FileNotFoundException: /my directory/ (No such file or directory)
Waiting for Jenkins to finish collecting data [JENKINS] Archiving /var/lib/jenkins/workspace/Veracode/xxxx/xx/pom.xml to xxxx/Plugin/2.1-SNAPSHOT/2.1-SNAPSHOT.pom [JENKINS] Archiving /var/lib/jenkins/workspace/Veracode/xx-scanner-plugin/burp/target/xx-release-1.jar to com.xxx/Plugin/2.1-SNAPSHOT/-2.1-SNAPSHOT.jar [APSHOT.jar and so on .... channel stopped
I'm still seeing the first error and also now the second one that I described above is there too.
Hmm, I'm not sure what could be causing the errors that you're experiencing. You may want to try the official plugin that is supported by Veracode. I developed this plugin before the official plugin was available, and I'm guessing you'll get better support with the official plugin. Here is a link to the instructions on how to install Veracode's plugin. Let me know if the official plugin gives you better results.
I'm using veracode plugs in .
but still having this error:
Uploading Files to Veracode: [/var/lib/jenkins/workspace/path/*.jar]
Veracode scan failed.
FATAL: Veracode scan failed.
org.jenkinsci.plugins.veracodescanner.exception.VeracodeScannerException: Veracode scan failed.
at org.jenkinsci.plugins.veracodescanner.VeracodeNotifier.performScan(VeracodeNotifier.java:169)
at org.jenkinsci.plugins.veracodescanner.VeracodeNotifier.perform(VeracodeNotifier.java:87)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.cleanUp(MavenModuleSetBuild.java:1064)
at hudson.model.Run.execute(Run.java:1778)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:234)
Caused by: java.io.FileNotFoundException: mydirectory(No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.
Yes, currently you're using the veracode plugin that I developed as an open source solution before Veracode released their officially supported plugin. The problems you're experiencing are with the unsupported open source solution. If you uninstall that plugin, and instead install the official plugin available for download here, you might get better results and you'll also get support from Veracode if needed.
I'm receiving this error :
VeracodeJavaAPI v13.6.1.7 Parsing error(s): -filepath is required for the selected action.
The following parameters are optional for the selected action: -format -inputfilepath -logfilepath -phost -ppassword -pport -puser
[ip 09:53:29] [ip 09:53:29] Upload and scan failure. Build step 'Upload and scan with Veracode' marked build as failure Finished: FAILURE I'm receiving this error for my path file : **/myfilename.jar
I'm not sure what that error could be. If you're using the official plugin now, you should reach out to Veracode for support. They should be able to get you going.
I'm receiving this error :
VeracodeJavaAPI v13.6.1.7 Parsing error(s): -filepath is required for the selected action.
The following parameters are optional for the selected action: -format -inputfilepath -logfilepath -phost -ppassword -pport -puser
[ip 09:53:29] [ip 09:53:29] Upload and scan failure. Build step 'Upload and scan with Veracode' marked build as failure Finished: FAILURE I'm receiving this error for my path file : **/myfilename.jar
@maloochpich I'm Getting the same error. Was you able to sort it out?
Suggestion @turri87 -- per @mbockus 's suggestion above, please consider trying the official Veracode plugin available for download here. I don't think @mbockus is actively maintaining this plugin any more.
Veracode scan failed. FATAL: Veracode scan failed. org.jenkinsci.plugins.veracodescanner.exception.VeracodeScannerException: Veracode scan failed. at org.jenkinsci.plugins.veracodescanner.VeracodeNotifier.performScan(VeracodeNotifier.java:169) at org.jenkinsci.plugins.veracodescanner.VeracodeNotifier.perform(VeracodeNotifier.java:87) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.cleanUp(MavenModuleSetBuild.java:1064) at hudson.model.Run.execute(Run.java:1778) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) Caused by: java.io.FileNotFoundException: /my directory/ (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:146)
at com.veracode.util.http.ClientHttpRequest.setParameter(ClientHttpRequest.java:356)
at com.veracode.util.http.ClientHttpRequest.setParameter(ClientHttpRequest.java:384)
at com.veracode.util.http.ClientHttpRequest.setParameters(ClientHttpRequest.java:408)
at com.veracode.util.http.ClientHttpRequest.post(ClientHttpRequest.java:479)
at com.veracode.util.http.ClientHttpRequest.post(ClientHttpRequest.java:585)
at com.veracode.util.http.WebClient.consumeResponse(WebClient.java:140)
at com.veracode.util.http.WebClient.uploadFile(WebClient.java:35)
at com.veracode.apiwrapper.wrappers.UploadAPIWrapper.uploadFile(UploadAPIWrapper.java:1151)
at org.jenkinsci.plugins.veracodescanner.VeracodeNotifier.performScan(VeracodeNotifier.java:152)
... 9 more