Skip to content

Commit

Permalink
Use ComponentCategory.BUILDS (#814)
Browse files Browse the repository at this point in the history
* Use `ComponentCategory.BUILDS`

* Incremental build

* #814 (comment)
  • Loading branch information
jglick authored Nov 28, 2023
1 parent e64a8c6 commit c3031ab
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@
<scope>import</scope>
<type>pom</type>
</dependency>
<!-- TODO until in BOM: -->
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>support-core</artifactId>
<version>1366.v9d076592655d</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2020,6 +2020,10 @@ public void autopersist(@NonNull FlowNode n) throws IOException {
return "Timing data about recently completed Pipeline builds";
}

@Override public ComponentCategory getCategory() {
return ComponentCategory.BUILDS;
}

@Override public void addContents(Container container) {
container.add(new Content("nodes/master/pipeline-timings.txt") {
@Override public void writeTo(OutputStream outputStream) throws IOException {
Expand Down Expand Up @@ -2067,6 +2071,10 @@ public void autopersist(@NonNull FlowNode n) throws IOException {
return "List of internal API calls made by Pipeline builds (typically from trusted libraries)";
}

@Override public ComponentCategory getCategory() {
return ComponentCategory.BUILDS;
}

@Override public void addContents(Container container) {
container.add(new Content("nodes/master/pipeline-internal-calls.txt") {
@Override public void writeTo(OutputStream outputStream) throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ public CpsThreadDump getThreadDump() {
return "Thread dumps of running Pipeline builds";
}

@Override public ComponentCategory getCategory() {
return ComponentCategory.BUILDS;
}

@Override public void addContents(Container container) {
container.add(new Content("nodes/master/pipeline-thread-dump.txt") {
@Override public void writeTo(OutputStream outputStream) throws IOException {
Expand Down

0 comments on commit c3031ab

Please sign in to comment.