Skip to content

Commit

Permalink
[JENKINS-19081] @kohsuke prefers that the option to disable signature…
Browse files Browse the repository at this point in the history
… checks not even be presented unless -Dhudson.model.DownloadService.noSignatureCheck is used.

(cherry picked from commit 54c8500)
  • Loading branch information
jglick authored and olivergondza committed Apr 13, 2014
1 parent 09af03a commit 7d6e02e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/DownloadService.java
Expand Up @@ -346,7 +346,7 @@ public static Downloadable get(String id) {

public static boolean neverUpdate = Boolean.getBoolean(DownloadService.class.getName()+".never");

/** @deprecated Use {@link DownloadSettings#setIgnoreSignature} instead. */
/** Now used only to set default value of, and enable UI switching of, {@link DownloadSettings#setIgnoreSignature}. */
public static boolean signatureCheck = !Boolean.getBoolean(DownloadService.class.getName()+".noSignatureCheck");
}

Expand Up @@ -6,7 +6,9 @@ f.section(title: _("Download Preferences")) {
f.entry(title: _("Use Browser"), field: "useBrowser") {
f.checkbox()
}
f.entry(title: _("Check Signatures"), field: "checkSignature") {
f.checkbox()
if (!instance.checkSignature || !hudson.model.DownloadService.signatureCheck) { // do not display this option by default
f.entry(title: _("Check Signatures"), field: "checkSignature") {
f.checkbox()
}
}
}

0 comments on commit 7d6e02e

Please sign in to comment.