Skip to content

Commit

Permalink
Tweak readme a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
shamil committed Nov 12, 2022
1 parent 8203873 commit 9d41fe4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ A docker image of Jenkins `JNLP` based agent. This image can self-register to Je
- `JENKINS_AUTH` jenkins server username and either password or API token (in `user:secet` format)
- `JENKINS_URL` jenkins master url (example `http://localhost:8080`)
- `JENKINS_AGENT_LABEL` space delimited labels, used to group agents into one logical group (no default)
- `JENKINS_AGENT_MODE` how Jenkins schedules builds on this node, `NORMAL/EXCLUSIVE` (default is `NORMAL`)
- `JENKINS_AGENT_NAME` the name which will be used when registering (default is `$HOSTNAME`)
- `JENKINS_AGENT_MODE` how Jenkins schedules builds on this node, `NORMAL/EXCLUSIVE` (defaults to `NORMAL`)
- `JENKINS_AGENT_NAME` the name which will be used when registering (defaults to `$HOSTNAME`)
- `JENKINS_AGENT_NUM_EXECUTORS` number of executors to use (defaults to `1`)

less used and can keep the defaults

- `DOCKER_GROUP` the docker group name, should be same as the docker's host group (defaults to `docker`)
- `DOCKER_SOCKET` the docker socket location (default is `/var/run/docker.sock`)
- `DOCKER_SOCKET` the docker socket location (defaults to `/var/run/docker.sock`)
- `JAVA_OPTS` pass java options to the `agent.jar` process (default is not set)
- `JENKINS_AGENT_CONNECTION_MODE` the connection mode to use to connect to the jenkins's controller (defaults to `-http`)

Expand Down
2 changes: 1 addition & 1 deletion jenkins-agent
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ DOWNLOAD_DIR=/usr/share/jenkins
: ${JENKINS_HOME:=/var/jenkins_home}
: ${JENKINS_USER:=jenkins}

: ${JENKINS_AGENT_CONNECTION_MODE:=-http}
: ${JENKINS_AGENT_LABEL:=''}
: ${JENKINS_AGENT_MODE:=NORMAL}
: ${JENKINS_AGENT_NAME:=$HOSTNAME}
: ${JENKINS_AGENT_NUM_EXECUTORS:=1}
: ${JENKINS_AGENT_CONNECTION_MODE:=-http}

JENKINS_AGENT_REMOTE_FS="$JENKINS_HOME"

Expand Down

0 comments on commit 9d41fe4

Please sign in to comment.