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}",