Skip to content

Commit 23a1dde

Browse files
committed
Merge branch 'master' into UTF-8-JENKINS-31096
2 parents 6f2bf2e + 20f36d7 commit 23a1dde

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</parent>
3434
<groupId>org.jenkins-ci.plugins.workflow</groupId>
3535
<artifactId>workflow-durable-task-step</artifactId>
36-
<version>2.19-SNAPSHOT</version>
36+
<version>2.20-SNAPSHOT</version>
3737
<packaging>hpi</packaging>
3838
<name>Pipeline: Nodes and Processes</name>
3939
<url>https://wiki.jenkins.io/display/JENKINS/Pipeline+Nodes+and+Processes+Plugin</url>
@@ -76,7 +76,7 @@
7676
<dependency>
7777
<groupId>org.jenkins-ci.plugins</groupId>
7878
<artifactId>durable-task</artifactId>
79-
<version>1.18-20180212.221815-3</version> <!-- TODO https://github.com/jenkinsci/durable-task-plugin/pull/61 -->
79+
<version>1.19-SNAPSHOT</version> <!-- TODO https://github.com/jenkinsci/durable-task-plugin/pull/61 -->
8080
</dependency>
8181
<dependency>
8282
<groupId>org.jenkins-ci.plugins.workflow</groupId>

src/test/java/org/jenkinsci/plugins/workflow/steps/durable_task/PowerShellStepTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ public class PowerShellStepTest {
6464
p.setDefinition(new CpsFlowDefinition("node {powershell 'throw \"bogus error\"'}"));
6565
j.assertLogContains("bogus error", j.assertBuildStatus(Result.FAILURE, p.scheduleBuild2(0)));
6666
}
67+
68+
@Test public void testUnicode() throws Exception {
69+
WorkflowJob p = j.jenkins.createProject(WorkflowJob.class, "foobar");
70+
p.setDefinition(new CpsFlowDefinition("node {def x = powershell(returnStdout: true, script: 'write-output \"Hëllö Wórld\"'); println x.replace(\"\ufeff\",\"\")}"));
71+
String log = new String(j.getLog(j.assertBuildStatusSuccess(p.scheduleBuild2(0))).getBytes(), "UTF-8");
72+
Assume.assumeTrue("Correct UTF-8 output should be produced",log.contains("Hëllö Wórld"));
73+
}
6774

6875
}
6976

0 commit comments

Comments
 (0)