Skip to content

Commit

Permalink
Add plugin installation
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanrousseau committed Sep 30, 2020
1 parent aa9497f commit 019505d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ if [ ! -d "jenkins_data" ]; then
echo "jenkins_data/ configured."
fi

if [ ! -d "jenkins_plugins" ]; then
echo "Create jenkins_plugins folder."
mkdir jenkins_plugins
echo "Set owner of jenkins_plugins/."
chown -R jenkins:0 jenkins_plugins/
echo "jenkins_plugins/ configured."
fi

echo "Install plugins."
tag=$(get_octopusvariable "Project.Jenkins.ServerTag")

docker run --volume "$(pwd)/jenkins_plugins:/usr/share/jenkins/ref/plugins" \
bitnami/jenkins:$tag \
install-plugins.sh octopusdeploy:latest custom-tools-plugin:latest

docker-compose pull
docker-compose up -d

Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ services:
- 50000:50000
volumes:
- ./jenkins_data:/bitnami/jenkins
- ./jenkins_plugins:/usr/share/jenkins/ref/plugins

0 comments on commit 019505d

Please sign in to comment.