diff options
author | RHE <rebirthmonkey@gmail.com> | 2018-01-12 14:56:14 +0100 |
---|---|---|
committer | RHE <rebirthmonkey@gmail.com> | 2018-01-12 14:56:14 +0100 |
commit | 5d325dfc5d666b345b6555ea9dc4ab3af853be67 (patch) | |
tree | 7888aab723b8d127666302f65ad5b5df6f9f92d1 /tools/moon_jenkins/README.md | |
parent | df9333a89b3d38a5421bc86fae4e0bba9280b21b (diff) |
create moon jenkins
Change-Id: I10cac28f45fca917a0a841e1113a9ffb31369f15
Signed-off-by: RHE <rebirthmonkey@gmail.com>
Diffstat (limited to 'tools/moon_jenkins/README.md')
-rw-r--r-- | tools/moon_jenkins/README.md | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tools/moon_jenkins/README.md b/tools/moon_jenkins/README.md new file mode 100644 index 00000000..684b351c --- /dev/null +++ b/tools/moon_jenkins/README.md @@ -0,0 +1,37 @@ +# 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) |