From 12977a92808c5c74ea18754c88a3f944f8eb2355 Mon Sep 17 00:00:00 2001 From: Olivier Jacques Date: Wed, 12 Apr 2017 11:26:46 +0200 Subject: [PATCH] Fix buildgraph-view Jenkins plugin install --- vagrant/provision/roles/jenkins/tasks/main.yml | 7 +++++-- vagrant/provision/vars/default.yml | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/vagrant/provision/roles/jenkins/tasks/main.yml b/vagrant/provision/roles/jenkins/tasks/main.yml index 02b69ed61..2c1229841 100644 --- a/vagrant/provision/roles/jenkins/tasks/main.yml +++ b/vagrant/provision/roles/jenkins/tasks/main.yml @@ -200,12 +200,13 @@ - performance - jacoco - sonar - - buildgraph-view + - http://mirrors.jenkins-ci.org/plugins/buildgraph-view/1.5.2/buildgraph-view.hpi - xvfb - ws-cleanup - xframe-filter-plugin - htmlpublisher notify: restart jenkins + ignore_errors: True - name: restart jenkins sudo: yes @@ -240,11 +241,13 @@ dest: /var/lib/jenkins/config.xml marker: "" block: | - 2 + 3 GIT_REPOSITORY {{github_url}} BRANCH_TO_BUILD {{github_branch}} + PROD_SERVERS + {{prod_servers}} - file: path=/var/lib/jenkins/.ssh/ mode=0755 owner=jenkins group=jenkins state=directory - file: path=/var/lib/jenkins/.ssh/known_hosts mode=0755 owner=jenkins group=jenkins state=touch diff --git a/vagrant/provision/vars/default.yml b/vagrant/provision/vars/default.yml index 45ce3aeb8..62db4b0c0 100644 --- a/vagrant/provision/vars/default.yml +++ b/vagrant/provision/vars/default.yml @@ -12,6 +12,8 @@ oracle_java_folder : jdk1.8.0_25 github_branch: refs/tags/v1.0 # Github location of the project github_url: "https://github.com/devops-dojo/the-app.git" +# List of microservice production servers (for elastic scaling) +prod_servers: "app-server-node-4 app-server-node-5" # Hubot adapter: slack or flowdock hubot_adapter: flowdock