Skip to content
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

Appending Environment Variables #84

Open
jkao97 opened this issue Jul 9, 2020 · 2 comments
Open

Appending Environment Variables #84

jkao97 opened this issue Jul 9, 2020 · 2 comments

Comments

@jkao97
Copy link

jkao97 commented Jul 9, 2020

Is there a way to append environment variables via Docker Agent Template? I've tried, for example, PATH=$PATH:abc/xyz but that seems to be an issue as the agent is starting up.

@shailesh-vaidya
Copy link

I am also facing same issue. I have npm installed in my container. Job was working fine when I use image with Docker plugin . When I try to use Docker Swarm plugin it gives error as npm: command not found

I tried to provide PATH="/root/.nvm/versions/node/v12.13.0/bin:/opt/rh/sclo-git212/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin" through Docker Agent templates configuration but then it does not start container itself.

@Sherpard
Copy link

I'm facing the same Issue here, I'm looking forward to be able to specify the tool location, so Jenkins use the pre-installed tools instead of providing the auto-installable version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants