on 2023 Jan 17 9:26 AM
We are upgrading Hybris 2005 -> 2205.
While performing ant clean all in Jenkins, we are getting below error
Cannot run program "/...../repairnpm.sh" (in directory "/jenkinsdata/..../workspace/hybris/bin/platform"): error=13, Permission denied
Java version is 17
Request clarification before answering.
To fix this issue, you can either give the Jenkins user execute permissions on the repairnpm.sh script or run the Jenkins build as a user that already has execute permissions on the script.
You can also try this command : chmod +x /...../repairnpm.sh, it will give execute permission to the repairnpm.sh file.
EDIT: I faced this issue again and I fixed it by reinstalling the JDK.
In my case, I downloaded the JDK on my WSL2 partition AND I used 7zip (from Windows) to unzip the .tar.gz (in a WSL folder). It turned out that the JDK files were corrupted and unable to properly execute the scripts (even if "java -version" was printing the correct message!) . So, here are the correct steps:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.