-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with Kubernetes #38
Comments
Sorry, I'm not really familiar enough with Jenkins to make suggestions on how to properly run Sonar in K8S with a Jenkins pipeline. |
Here is some example of Declarative Pipeline without k8s we use. You can see the entrypoint hack that is a little bit pain in the ***, most of Docker images have a
Jenkins runs the agent.docker.image with the |
thanks @serut. I just recently refactored the project a bit and moved the Dockerfile away from the ENTRYPOINT approach and instead went back to a purely CMD-based launch. I have seen the You might take a look at the images I pushed yesterday and see if those are a bit more copacetic to your needs without the entrypoint hack, see if that helps. @shankarinece if you can try the new images as well, see if this issue goes away for you then. |
I can't test, if I'm right your image v4 is for a recent Sonar, and the sonar v3 used the previous one. (a Java compatibily if I remember). So I can't test the image v4 new CMD with my existing sonar :( |
Ahh, I see. I can build an image the most recent version of 3.x with a CMD-based approach if that helps? |
It would helps me to test it 👍 |
Hi,
Not able to see the sonar-scanner binary while using the image in Kubernetes environment with jnlp slaves.
the directory /usr/local/bin/ doesn't have the binary or the link.
The Jenkinsfile looks like the one below.
pipeline {
agent none
stages {
stage('SQTest') {
agent {
kubernetes {
label 'sample-app'
defaultContainer 'jnlp'
yamlFile 'cloudprovider.yaml'
}
}
steps {
sh "sonar-scanner -Dproject.settings=testInputs/sonar-project.properties"
}
}
}
}
The cloudprovider.yaml has the image newtmitch/sonar-scanner:alpine and command['cat']
Any suggestions?
Thanks
The text was updated successfully, but these errors were encountered: