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

Change ENV JENKINS_AGENT_WORKDIR with workspace directory #674

Open
alekslebedev opened this issue Dec 26, 2019 · 2 comments
Open

Change ENV JENKINS_AGENT_WORKDIR with workspace directory #674

alekslebedev opened this issue Dec 26, 2019 · 2 comments

Comments

@alekslebedev
Copy link

Hi!
We have a JENKINS_AGENT_WORKDIR variable but its not related to workspace directory, but only remoting directory. So there is no way to change workspace directory from /home/jenkins/agent/workspace ? I tried to change this behavior in upstream jenkinsci/docker-slave , but it doesn't help. Maybe I`m wrong ?
P.S. As a workaround I can create a link like this ln -s /opt/workspace /home/jenkins/agent/workspace .

@prudhvigodithi
Copy link

Hey I'm having the Same issue, previously it used to be /home/jenkins with 3.28 agent.jar, with the latest version (4.9) it is created as /home/jenkins/agent/workspace, we had some issues with builds that hardcoded the workspace path.

@prudhvigodithi
Copy link

Adding this workingDir: /home/jenkins, during runtime actually fixed it, with workingDir flag we can configure the desired workspace path.

@lemeurherve lemeurherve transferred this issue from jenkinsci/docker-inbound-agent Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants