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

Commit b5ea335

Browse files
committed
Merge pull request #39 from maestrodev/feature/Remove_old_plugin_versions
Remove old plugin versions because SonarQube does not support two dif…
2 parents f8133d3 + 0cbc102 commit b5ea335

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

manifests/plugin.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
before => File[$plugin],
3737
require => File[$sonarqube::plugin_dir],
3838
}
39+
exec { "remove-old-versions-of-${artifactid}":
40+
command => "rm -f ${sonarqube::plugin_dir}/${artifactid}*.jar",
41+
path => '/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin',
42+
}
43+
->
3944
file { $plugin:
4045
ensure => $ensure,
4146
source => "/tmp/${plugin_name}",

0 commit comments

Comments
 (0)