"Executable not found: mvn" in fortifyTranslate, fortifyMaven3 declarative Jenkinsfile
How can I ensure maven is found in the PATH?
Maven is configured in the global tool config in Jenkins and is found in another step of the job.
It's in the PATH:
sh ' env | sort'
I am using a declarative Jenkinsfile.
Relevant bits of the Jenkinsfile:
@adrianblakey I had similar issue during my pipeline and I was able to resolve to specify the maven tool config in "Manage Jenkins -> Configure System" page under global properties
Then, check "Tool Locations" and select the Maven installation from the dropdown similarly
After these, my jenkins was able to detect the Maven