From 0cbc1021bbd8593940d0a4c58084952998e0de08 Mon Sep 17 00:00:00 2001 From: David RACODON Date: Thu, 30 Jul 2015 13:46:16 +0200 Subject: [PATCH] Remove old plugin versions because SonarQube does not support two different versions of the same plugin in the extensions/plugins folder --- manifests/plugin.pp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manifests/plugin.pp b/manifests/plugin.pp index 1cfc914d..dce987ba 100644 --- a/manifests/plugin.pp +++ b/manifests/plugin.pp @@ -36,6 +36,11 @@ before => File[$plugin], require => File[$sonarqube::plugin_dir], } + exec { "remove-old-versions-of-${artifactid}": + command => "rm -f ${sonarqube::plugin_dir}/${artifactid}*.jar", + path => '/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin', + } + -> file { $plugin: ensure => $ensure, source => "/tmp/${plugin_name}",