Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

Commit

Permalink
Remove old plugin versions because SonarQube does not support two dif…
Browse files Browse the repository at this point in the history
…ferent versions of the same plugin in the extensions/plugins folder
  • Loading branch information
racodond committed Jul 30, 2015
1 parent f8133d3 commit 0cbc102
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manifests/plugin.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down

0 comments on commit 0cbc102

Please sign in to comment.