Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added uninstaller that removes *.jpi.
- Loading branch information
Showing
5 changed files
with
77 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
core/src/main/resources/hudson/PluginWrapper/uninstall.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package hudson.PluginWrapper | ||
|
||
def l = namespace(lib.LayoutTagLib) | ||
def f = namespace(lib.FormTagLib) | ||
|
||
l.layout { | ||
def title = "Uninstalling ${my.shortName} plugin" | ||
l.header(title:title) | ||
l.main_panel { | ||
h1 { | ||
img(src:"${imagesURL}/48x48/error.png",alt:"[!]",height:48,width:48) | ||
text(" ") | ||
text(title) | ||
} | ||
p { raw _("msg",my.shortName) } | ||
f.form(method:"post",action:"doUninstall") { | ||
f.submit(value:_("Yes")) | ||
} | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
core/src/main/resources/hudson/PluginWrapper/uninstall.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
msg=You are about to uninstall the <b>{0}</b> plugin. This will remove the plugin binary from your $JENKINS_HOME, \ | ||
but it'll the configuration files of the plugin. |
Shouldn't this be Uninstallation pending ? i.e. its a missspelling