Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/cli/GroovyCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private String loadScript() throws CmdLineException, IOException, InterruptedExc
if (script == null)
throw new CmdLineException(null, "No script is specified");
if (script.equals("="))
return IOUtils.toString(stdin);
return IOUtils.toString(stdin, getClientCharset());

checkChannel();
return null; // never called
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/hudson/cli/SetBuildDescriptionCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@

@Override
protected int run() throws Exception {
Run run = job.getBuildByNumber(number);
Run<?, ?> run = job.getBuildByNumber(number);
if (run == null)
throw new IllegalArgumentException("No such build #" + number);

run.checkPermission(Run.UPDATE);

if ("=".equals(description)) {
description = IOUtils.toString(stdin);
description = IOUtils.toString(stdin, getClientCharset());

Check warning on line 40 in core/src/main/java/hudson/cli/SetBuildDescriptionCommand.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 40 is not covered by tests
}

run.setDescription(description);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
run.checkPermission(Run.UPDATE);

if ("-".equals(displayName)) {
displayName = IOUtils.toString(stdin);
displayName = IOUtils.toString(stdin, getClientCharset());

Check warning on line 39 in core/src/main/java/hudson/cli/SetBuildDisplayNameCommand.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 39 is not covered by tests
}

run.setDisplayName(displayName);
Expand Down
Loading