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 476ac63
Showing 1 changed file with 15 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

0 comments on commit 476ac63

Please sign in to comment.