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

Add install for ADDITIONAL_PKGS env var to start script #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions run/nobody/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@ export JENKINS_WEBROOT=--webroot=/var/cache/jenkins
export JENKINS_PORT=--httpPort=8090
export JENKINS_COMMAND_LINE="${JAVA} ${JAVA_ARGS} ${JAVA_OPTS} -jar ${JENKINS_WAR} ${JENKINS_WEBROOT} ${JENKINS_PORT} ${JENKINS_OPTS}"

# install additional packages using pacman if specified
if [[ ! -z "${ADDITIONAL_PKGS}" ]]; then
echo "[info] Installing additional packages: ${ADDITIONAL_PKGS}"
pacman -S --needed $ADDITIONAL_PKGS --noconfirm
fi

# run jenkins
/bin/sh -c 'eval "${JENKINS_COMMAND_LINE}"'