Open Nereis opened 1 year ago
We saw that the M2_HOME is defined in the docker image. We tried to add it manually on Jenkins side in case it was now added in a bashrc not loaded by jenkins but no luck.
Thanks for reporting this issue, @Nereis! We couldn't reproduce this issue. Could you please share the value of your configured M2_HOME? Is it possible to try unsetting it? We also made some improvements in the latest JFrog CLI v2.37.2. Could you please try using the latest version?
We'd looking forward for your feedback.
Hi,
We tried the 2.37.2 this morning and same results.
By default, we doesn't provide any M2_HOME on Jenkins since we are using podtemplate and installation should come out of the box within the docker image. When we tried to set the M2_HOME to the same value configured in the docker image, it didn't helped
environment {
M2_HOME = '/home/frogger/.sdkman/candidates/maven/current'
}
We tried again on 2.46.2 and we have the same issue. Any update?
Our best guess would be a permission issue due OKD/Jenkins where root is not allowed. Did you try to reproduce the issue on a jenkins using Kubernetes without root allowed?
That's it. Running the image on OKD without root thus having another securitycontext blow up the permission. We were able to bypass it by extending your image and update the permission
RUN chgrp -R 0 /home/frogger/ && \
chmod -R g=u /home/frogger/
Could you fix the docker image?
Describe the bug
On our jenkins, we are using the jf docker image to handle xray audit. Apparently form version 2.37.0 but confirmed on version 2.37.1, we start to have the following error on multiples builds
We rollback to 2.36.1 and behavior is back to normal.
I tried to reproduce it locally without running on top of Jenkins & OKD and it works fine.
Current behavior
2.37.1
Reproduction steps
It most likely will be complicated since we are running Jenkins on a OKD cluster but basically
Expected behavior
2.36.1
JFrog CLI version
2.37.1
Operating system type and version
Jenkins 2.387.3 running on OKD 4
JFrog Artifactory version
7.55.8
JFrog Xray version
3.69.3