-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
The change introduced in #221 broke a set of commands I had built that were running in a Jenkins instance. SUDO_USER is injected into the environment thanks to the https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin.
Might I suggest that you prefix SUDO_USER with something rerun specific so that this line doesn't see the Jenkins-injected env var and bail on rerun startup (sudo password prompts and jenkins jobs don't get along too well 😄)
More details on our Jenkins slaves:
- We create an Ubuntu VM which comes along with the admin user: "ubuntu"
- We create a "jenkins" user
- When we start the slave we:
- ssh to the Ubuntu VM, run
sudo su - jenkins - run a start script which connects the jenkins slave to the jenkins master
- ssh to the Ubuntu VM, run
ajmeese7
Metadata
Metadata
Assignees
Labels
No labels