aboutsummaryrefslogtreecommitdiffstats
path: root/tools/moon_jenkins
diff options
context:
space:
mode:
Diffstat (limited to 'tools/moon_jenkins')
-rw-r--r--tools/moon_jenkins/Dockerfile8
-rw-r--r--tools/moon_jenkins/README.md37
-rw-r--r--tools/moon_jenkins/docker-compose.yml20
-rw-r--r--tools/moon_jenkins/images/Create Multibranch Pipeline.pngbin55639 -> 0 bytes
-rw-r--r--tools/moon_jenkins/images/Git Source Multibranch Pipeline.pngbin31054 -> 0 bytes
-rw-r--r--tools/moon_jenkins/images/Multibranch Pipeline Log.pngbin55231 -> 0 bytes
-rw-r--r--tools/moon_jenkins/images/Select Source Multibranch Pipeline.pngbin23375 -> 0 bytes
-rw-r--r--tools/moon_jenkins/plugins.txt100
-rw-r--r--tools/moon_jenkins/security.groovy20
9 files changed, 0 insertions, 185 deletions
diff --git a/tools/moon_jenkins/Dockerfile b/tools/moon_jenkins/Dockerfile
deleted file mode 100644
index 058f388c..00000000
--- a/tools/moon_jenkins/Dockerfile
+++ /dev/null
@@ -1,8 +0,0 @@
-FROM jenkinsci/blueocean
-
-ENV JAVA_OPTS="-Djenkins.install.runSetupWizard=false"
-
-COPY security.groovy /usr/share/jenkins/ref/init.groovy.d/security.groovy
-
-COPY plugins.txt /usr/share/jenkins/ref/plugins.txt
-RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt \ No newline at end of file
diff --git a/tools/moon_jenkins/README.md b/tools/moon_jenkins/README.md
deleted file mode 100644
index 684b351c..00000000
--- a/tools/moon_jenkins/README.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# Moon Jenkins
-The aim of this repo is to give a quick way to start with jenkins in containers.
-These were the aims of the automation:
-- minimal interaction with Jenkins GUI - the plugins in plugins.txt are installed automatically, the admin user is setup based on environment variables, proxy variables are inherited from environment
-- the build of the custom image is integrated in the same workflow
-
-## Prerequisites
-- one host running a newer version of the docker-engine
-- docker-compose 1.18.0
-
-## Usage
-- Setup secrets:
-```bash
-export JENKINS_USER=admin
-export JENKINS_PASSWORD=admin
-```
-- Deploy jenkins:
-```bash
-docker-compose up -d
- ```
-- Test: Jenkins GUI can be available on `http://<docker host IP>:8080`
-
-
-## Pipeline Creation
-You may find bellow an example of pipeline creation using BlueOcean interface.
-As example I used a clone (https://github.com/brutus333/moon.git) of the moon project (https://git.opnfv.org/moon/)
-
-Click on "Create a new job" in the classical Jenkins UI and follow the steps highlighted bellow:
-
-![Create Multibranch Pipeline](images/Create%20Multibranch%20Pipeline.png)
-![Select Source](images/Select%20Source%20Multibranch%20Pipeline.png)
-![Configure Source](images/Git%20Source%20Multibranch%20Pipeline.png)
-![Multibranch Pipeline Log](images/Multibranch%20Pipeline%20Log.png)
-
-Clicking on BlueOcean shows the pipeline in the blueocean interface:
-
-![Blue Ocean Pipeline success](images/blue%20ocean%20success%20pipeline.png)
diff --git a/tools/moon_jenkins/docker-compose.yml b/tools/moon_jenkins/docker-compose.yml
deleted file mode 100644
index eb9354ce..00000000
--- a/tools/moon_jenkins/docker-compose.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-version: '3.1'
-
-services:
- jenkins:
- build:
- context: .
- image: blueocean:v0.4
- ports:
- - 8080:8080
- - 50000:50000
- environment:
- - jenkins_user=${JENKINS_USER}
- - jenkins_password=${JENKINS_PASSWORD}
- volumes:
- - jenkins-data:/var/jenkins_home
- - /var/run/docker.sock:/var/run/docker.sock
- user: root
-
-volumes:
- jenkins-data: \ No newline at end of file
diff --git a/tools/moon_jenkins/images/Create Multibranch Pipeline.png b/tools/moon_jenkins/images/Create Multibranch Pipeline.png
deleted file mode 100644
index c71415c0..00000000
--- a/tools/moon_jenkins/images/Create Multibranch Pipeline.png
+++ /dev/null
Binary files differ
diff --git a/tools/moon_jenkins/images/Git Source Multibranch Pipeline.png b/tools/moon_jenkins/images/Git Source Multibranch Pipeline.png
deleted file mode 100644
index dd37f217..00000000
--- a/tools/moon_jenkins/images/Git Source Multibranch Pipeline.png
+++ /dev/null
Binary files differ
diff --git a/tools/moon_jenkins/images/Multibranch Pipeline Log.png b/tools/moon_jenkins/images/Multibranch Pipeline Log.png
deleted file mode 100644
index a1905934..00000000
--- a/tools/moon_jenkins/images/Multibranch Pipeline Log.png
+++ /dev/null
Binary files differ
diff --git a/tools/moon_jenkins/images/Select Source Multibranch Pipeline.png b/tools/moon_jenkins/images/Select Source Multibranch Pipeline.png
deleted file mode 100644
index eadbe916..00000000
--- a/tools/moon_jenkins/images/Select Source Multibranch Pipeline.png
+++ /dev/null
Binary files differ
diff --git a/tools/moon_jenkins/plugins.txt b/tools/moon_jenkins/plugins.txt
deleted file mode 100644
index 65bae872..00000000
--- a/tools/moon_jenkins/plugins.txt
+++ /dev/null
@@ -1,100 +0,0 @@
-ssh-credentials
-git
-blueocean-dashboard
-pipeline-model-api
-pipeline-graph-analysis
-workflow-support
-display-url-api
-blueocean-config
-workflow-cps
-branch-api
-blueocean-i18n
-workflow-job
-blueocean-bitbucket-pipeline
-favorite
-docker-commons
-pipeline-input-step
-blueocean-pipeline-api-impl
-workflow-api
-jackson2-api
-git-client
-blueocean-pipeline-scm-api
-blueocean
-pipeline-build-step
-jquery-detached
-matrix-project
-antisamy-markup-formatter
-pipeline-model-extensions
-docker-workflow
-github
-git-server
-authentication-tokens
-workflow-cps-global-lib
-pipeline-model-definition
-workflow-scm-step
-pipeline-model-declarative-agent
-cloudbees-bitbucket-branch-source
-script-security
-scm-api
-blueocean-rest
-variant
-sse-gateway
-htmlpublisher
-matrix-auth
-pubsub-light
-blueocean-github-pipeline
-token-macro
-credentials
-mercurial
-plain-credentials
-blueocean-events
-github-api
-blueocean-git-pipeline
-structs
-durable-task
-pipeline-milestone-step
-blueocean-pipeline-editor
-blueocean-web
-pipeline-stage-tags-metadata
-ace-editor
-blueocean-commons
-blueocean-jira
-blueocean-rest-impl
-workflow-step-api
-blueocean-personalization
-workflow-basic-steps
-blueocean-display-url
-jira
-pipeline-stage-step
-jsch
-blueocean-jwt
-cloudbees-folder
-credentials-binding
-github-branch-source
-apache-httpcomponents-client-4-api
-blueocean-autofavorite
-workflow-multibranch
-mailer
-workflow-durable-task-step
-junit
-command-launcher
-bouncycastle-api
-build-timeout
-timestamper
-resource-disposer
-ws-cleanup
-ant
-gradle
-pipeline-rest-api
-handlebars
-momentjs
-pipeline-stage-view
-workflow-aggregator
-pipeline-github-lib
-mapdb-api
-subversion
-ssh-slaves
-pam-auth
-ldap
-email-ext
-locale \ No newline at end of file
diff --git a/tools/moon_jenkins/security.groovy b/tools/moon_jenkins/security.groovy
deleted file mode 100644
index 0fb5ff6e..00000000
--- a/tools/moon_jenkins/security.groovy
+++ /dev/null
@@ -1,20 +0,0 @@
-#!groovy
-
-import jenkins.model.*
-import hudson.security.*
-
-def instance = Jenkins.getInstance()
-
-def user = System.getenv()['jenkins_user']
-def pass = System.getenv()['jenkins_password']
-// Create user account
-def hudsonRealm = new HudsonPrivateSecurityRealm(false)
-hudsonRealm.createAccount(user,pass)
-instance.setSecurityRealm(hudsonRealm)
-
-// Enable matrix auth strategy and set my_user as admin
-def strategy = new GlobalMatrixAuthorizationStrategy()
-strategy.add(Jenkins.ADMINISTER, user)
-instance.setAuthorizationStrategy(strategy)
-
-instance.save()