Closed ksg97031 closed 2 years ago
Same issue still exist. Any progress ?
Running FortifyTranslate step Fortify Jenkins plugin v 21.2.37 Launching Fortify SCA translate command Found executable: /opt/fortify/bin/sourceanalyzer Running Maven 3 translation [Pipeline] } [Pipeline] // container [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // podTemplate [Pipeline] End of Pipeline java.io.FileNotFoundException: ERROR: executable not found: mvn; make sure that either MAVEN_HOME environment variable is set or mvn is on the PATH or in workspace at com.fortify.plugin.jenkins.steps.FortifyStep.findExecutablePath(FortifyStep.java:112) at com.fortify.plugin.jenkins.steps.FortifyStep.getExecutable(FortifyStep.java:101) at com.fortify.plugin.jenkins.steps.FortifySCAStep.getExecutableForEnvVar(FortifySCAStep.java:139) at com.fortify.plugin.jenkins.steps.FortifySCAStep.getMavenExecutable(FortifySCAStep.java:124) at com.fortify.plugin.jenkins.steps.FortifyTranslate.perform(FortifyTranslate.java:368) at com.fortify.plugin.jenkins.steps.FortifyTranslate$Execution.run(FortifyTranslate.java:485) at com.fortify.plugin.jenkins.steps.FortifyTranslate$Execution.run(FortifyTranslate.java:466) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) Finished: FAILURE
This might be the same bug as https://github.com/jenkinsci/fortify-plugin/issues/49. We've just fixed it and are going to release in 22.1.38 version of the plugin. Could you please test it again with that version (you can try out the fortify.hpi dev build from https://ci.jenkins.io/job/Plugins/job/fortify-plugin/job/master/ if you don't want to wait for the official release)
Closing for now. Please, reopen if you experience the issue with 22.1.38.
Version: Fortify Jenkins plugin v 20.2.34
I'm already setting the PATH and MAVEN_HOME environment correctly in all of my systems. Jenkins master and slave can find the mvn binary with 'sh' command. But the fortify-plugin can't find mvn binary.
Command sh
Command fortifyTranslate
This is my pipeline source.