Skip to content

Commit 8c82c77

Browse files
lewisbirkstimja
andauthored
Wrap on console text overflow (#715)
Co-authored-by: Tim Jacomb <[email protected]>
1 parent 86323eb commit 8c82c77

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/main/frontend/pipeline-console-view/pipeline-console/main/console-log-card.scss

+1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
.console-text div {
113113
text-indent: 0;
114114
display: inline-block;
115+
overflow-wrap: anywhere;
115116
}
116117

117118
pre.console-output-line {

src/main/java/io/jenkins/plugins/pipelinegraphview/consoleview/PipelineConsoleViewAction.java

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package io.jenkins.plugins.pipelinegraphview.consoleview;
22

33
import com.fasterxml.jackson.databind.ObjectMapper;
4+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
45
import hudson.console.AnnotatedLargeText;
56
import hudson.util.HttpResponses;
67
import io.jenkins.plugins.pipelinegraphview.PipelineGraphViewConfiguration;
@@ -117,6 +118,11 @@ protected JSONObject getAllSteps() throws IOException {
117118
}
118119

119120
@WebMethod(name = "log")
121+
@SuppressWarnings("ResultOfMethodCallIgnored")
122+
@SuppressFBWarnings(
123+
value = "RV_RETURN_VALUE_IGNORED",
124+
justification =
125+
"Doesn't seem to matter in practice, docs aren't clear on how to handle and most places ignore it")
120126
public void getConsoleText(StaplerRequest2 req, StaplerResponse2 rsp) throws IOException {
121127
String nodeId = req.getParameter("nodeId");
122128
if (nodeId == null) {

0 commit comments

Comments
 (0)