-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Plugin is not getting installed using Docker file #315
Comments
Hi @rajendrasnagar ! Thanks for raising this issue. Do you have the same issue whith other plugins ? |
Yes, It seems other plugins are also behaving similarly. There is no error on terminal, but when I run $sfdx plugins command, it says no plugins are there. |
Hum... then it does not seems to be an issue with our plugin... |
Yes, it seems it is not sgd plugin issues. I think, I should raise it on other platform. However, before closing, if possible... do you have any working docker image for Jenkins with plugins installation. We have to check if it is OpenShift specific permission issue or not. |
I think you can try this one. It is 4 month old, so it does not run the latest version but it may help identify your issue |
Thanks @scolladon, it is working as expected. However, it is still not working with Jenkins plugins. I think we need to explore more. |
Hi @rajendrasnagar, thanks for the update! Before closing this issue, could you give more information about what is not working with Jenkins plug-in ? |
@scolladon When I tried with the earlier one you mentioned (this one.), i.e. with nodejs base image. It is working as expected. |
Ok, thanks for the explanations. If you find the root cause of this issue with Jenkins please explain it here, it will probably be useful to someone else |
@rajendrasnagar
|
Hi @gambe94 That is very nice finding, thanks for sharing ! I think it would be even more helpful in a Discussion ! |
What is the problem?
We are trying to create a Jenkins Image with SGD using Docker file. There is no error in the terminal, however the plugin is not getting installed.
What is the parameter and the value you used with it?
Below is the Docker file used:
FROM jenkins/jenkins:2.263.3
USER root
RUN mkdir /.cache /.sf
RUN chown jenkins.jenkins /.cache -R
RUN chown jenkins.jenkins /.sf -R
RUN chmod 757 /.cache /.sf -R
#WORKDIR /
RUN apt-get update && apt-get install -y git ant xmlstarlet xz-utils
RUN apt-get install -y curl
&& curl -sL https://deb.nodesource.com/setup_14.x | bash -
&& apt-get install -y nodejs
&& curl -L https://www.npmjs.com/install.sh | sh
RUN npm i sfdx-cli --global
RUN echo y | sfdx plugins:install sfdx-git-delta
USER jenkins
What is the expected result?
Plugin should get installed.
What is the actual result?
Plugin is not installed, though there is no error on the terminal.
Execution context
We are using this docker file on OpenShift platform.
Any help or feedback is appreciated as we are trying to resolve this from past week with no success.
The text was updated successfully, but these errors were encountered: