mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
[FIXED HUDSON-4063] disable DownloadService during tests
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@20370 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
380238f16c
commit
163c08003e
2 files changed
+7
-1
No files matched your search
@@ -35,6 +35,8 @@ public class DownloadService extends PageDecorator {
|
||||
* Builds up an HTML fragment that starts all the download jobs.
|
||||
*/
|
||||
public String generateFragment() {
|
||||
if (neverUpdate) return "";
|
||||
|
||||
StringBuilder buf = new StringBuilder();
|
||||
if(Hudson.getInstance().hasPermission(Hudson.READ)) {
|
||||
long now = System.currentTimeMillis();
|
||||
@@ -196,5 +198,7 @@ public class DownloadService extends PageDecorator {
|
||||
|
||||
private static final Logger LOGGER = Logger.getLogger(Downloadable.class.getName());
|
||||
}
|
||||
|
||||
public static boolean neverUpdate = Boolean.getBoolean(DownloadService.class.getName()+".never");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user