Skip to content

Commit

Permalink
jenkins plugin installation
Browse files Browse the repository at this point in the history
  • Loading branch information
sauliuz committed Apr 19, 2019
1 parent 5cdd163 commit 12ce57c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jenkins/jenkins-setup-docker-terraform/files/Dockerfile
@@ -1,6 +1,11 @@
FROM jenkins/jenkins:latest

RUN /usr/local/bin/install-plugins.sh git matrix-auth blueocean

# install jenkins plugins
COPY ./jenkins-plugins /usr/share/jenkins/plugins
RUN while read i ; \
do /usr/local/bin/install-plugins.sh $i ; \
done < /usr/share/jenkins/plugins

ENV JENKINS_USER admin
ENV JENKINS_PASS admin
Expand Down
4 changes: 4 additions & 0 deletions jenkins/jenkins-setup-docker-terraform/files/jenkins-plugins
@@ -0,0 +1,4 @@
git
matrix-auth
maven-plugin
blueocean
5 changes: 5 additions & 0 deletions jenkins/jenkins-setup-docker-terraform/main.tf
Expand Up @@ -34,6 +34,11 @@ resource "digitalocean_droplet" "jenkinsci-server" {
destination = "/tmp/Dockerfile"
}

provisioner "file" {
source = "files/jenkins-plugins"
destination = "/tmp/jenkins-plugins"
}

provisioner "file" {
source = "files/default-user.groovy"
destination = "/tmp/default-user.groovy"
Expand Down

0 comments on commit 12ce57c

Please sign in to comment.