$JENKINS_HOME/logs
, just in case
55 | * any of them are useful.
56 | * Does not add anything if Jenkins instance is unavailable.
57 | * Some plugins write log files here.
58 | */
59 | private void addControllerTasksLogs(Container result) {
60 | Jenkins jenkins = Jenkins.getInstanceOrNull();
61 | if (jenkins != null) {
62 | File logsRoot = SafeTimerTask.getLogsRoot();
63 | for (File logs : new File[] {logsRoot, new File(logsRoot, "tasks")}) {
64 | File[] files = logs.listFiles(ROTATED_LOGFILE_FILTER);
65 | if (files != null) {
66 | Arrays.sort(files);
67 | long recently = System.currentTimeMillis() - FileListCapComponent.MAX_LOG_FILE_AGE_MS;
68 | for (File f : files) {
69 | if (f.getName().startsWith("Periodic background build discarder.log")) {
70 | continue; // https://github.com/jenkinsci/jenkins/pull/9663
71 | }
72 | if (f.lastModified() > recently) {
73 | result.add(new FileContent("task-logs/{0}", new String[] {f.getName()}, f));
74 | }
75 | }
76 | }
77 | }
78 | }
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/src/main/java/com/cloudbees/jenkins/support/impl/UpdateCenter.java:
--------------------------------------------------------------------------------
1 | package com.cloudbees.jenkins.support.impl;
2 |
3 | import com.cloudbees.jenkins.support.api.Component;
4 | import com.cloudbees.jenkins.support.api.Container;
5 | import com.cloudbees.jenkins.support.api.PrefilteredPrintedContent;
6 | import com.cloudbees.jenkins.support.filter.ContentFilter;
7 | import edu.umd.cs.findbugs.annotations.NonNull;
8 | import hudson.Extension;
9 | import hudson.model.UpdateSite;
10 | import hudson.security.Permission;
11 | import java.io.PrintWriter;
12 | import java.util.Collections;
13 | import java.util.Set;
14 | import jenkins.model.Jenkins;
15 |
16 | /**
17 | * Add information about the different update centers available to
18 | * the Jenkins instance.
19 | *
20 | * @since 2.30
21 | */
22 | @Extension
23 | public class UpdateCenter extends Component {
24 | @NonNull
25 | @Override
26 | public SetGenerating a support bundle for this Jenkins instance. This may take a few minutes.
12 |Actual Name | 36 |Anonymized Name | 37 |
---|---|
${item.key} | 41 |${item.value} | 42 |
org.apache.tools.ant.DirectoryScanner
which excludes by default the following patterns:
2 | p2=This option allows to enable or disable the default Ant exclusions.
--------------------------------------------------------------------------------
/src/main/resources/com/cloudbees/jenkins/support/impl/DirectoryComponent/help-excludes.html:
--------------------------------------------------------------------------------
1 | **/subdir/subsubdir/
or dir/file*.txt
4 | (syntax reference).
5 | A file that matches this mask will not be archived even if it matches the mask specified in Includes section.
6 | jobs/**/log*
.
4 | A file that matches this mask will be archived unless it matches the mask specified in the Excludes section.
5 |