Skip to content

Conversation

@jglick
Copy link
Member

@jglick jglick commented Feb 9, 2018

JEP-206

Subsumes #102. Downstream of jenkinsci/workflow-support-plugin#56. A tiny piece pulled out of #27 as one component of a solution to JENKINS-31096. Without jenkinsci/workflow-durable-task-step-plugin#64, you will get mojibake, but possibly no worse than you already do. Compare the attempt to do something similar for freestyle in jenkinsci/jenkins#3231.

</pluginRepositories>
<properties>
<jenkins.version>2.62</jenkins.version>
<jenkins.version>2.73.3</jenkins.version>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated, but easier to remember LTS baselines.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not bump the baseline unless there's a need to - this limits who can take advantage of new plugin releases.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bumped only to the nearest LTS line. There is no reason for anyone to still be using intermediate weeklies. If they are, they need to update.

WorkflowJob p = r.jenkins.createProject(WorkflowJob.class, "p");
String message = "¡Čau → there!";
p.setDefinition(new CpsFlowDefinition("echo '" + message + "'", true));
r.assertLogContains(message, r.buildAndAssertSuccess(p));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Windows (ISO-8859-1), this fails with mojibake with the charset = "UTF-8" line commented out, or with the upstream PR not integrated.

jglick added a commit to jglick/workflow-support-plugin that referenced this pull request Feb 12, 2018
Test can be strengthened only after jenkinsci/workflow-job-plugin#89 is released,
so we do not get into a cyclic dependency
(or by rewriting this aspect of the test to save content into a file and read it from test code).
<workflow-support-plugin.version>2.17</workflow-support-plugin.version>
<scm-api-plugin.version>2.1.1</scm-api-plugin.version>
<workflow-support-plugin.version>2.19-20180209.204154-1</workflow-support-plugin.version> <!-- TODO https://github.com/jenkinsci/workflow-support-plugin/pull/56 -->
<scm-api-plugin.version>2.2.6</scm-api-plugin.version>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something in the transitive deps needs it.

Copy link
Member

@svanoort svanoort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK to me, but as noted I want to test with the full stack.

@svanoort
Copy link
Member

"Without jenkinsci/workflow-durable-task-step-plugin#64, you will get mojibake, but possibly no worse than you already do." -- This worries me however.

@jglick
Copy link
Member Author

jglick commented Feb 16, 2018

IOW: if you are silly and only update certain plugins, things will not work very well. OTOH things are already broken, as can be seen from the bug report. If you just update all, things will be fine.

Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may cause regressions on not-UTF systems where encodings were somehow aligned between components. I do not actually believe that Jenkins core may work reliably on non-UTF-8 setups , hence 🐝

@jglick
Copy link
Member Author

jglick commented Jun 7, 2018

regressions on not-UTF systems where encodings were somehow aligned between components

Again, only if you selectively update plugins, pending JENKINS-49651.

@jglick jglick mentioned this pull request Jun 9, 2018
11 tasks
@jglick jglick requested a review from dwnusbaum June 22, 2018 21:38
Copy link
Member

@svanoort svanoort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems clean AFAICT. It'll go into release over the next few days once the rest of the batch of logging-encoding work is ready to release.

@jglick jglick changed the title [JENKINS-31096] Always use UTF-8 for the main Pipeline log file [JEP-206] Always use UTF-8 for the main Pipeline log file Aug 6, 2018
@svanoort svanoort merged commit 08bfc9b into jenkinsci:master Aug 7, 2018
@jglick jglick deleted the UTF-8-JENKINS-31096 branch August 7, 2018 21:46
jglick added a commit to jglick/workflow-durable-task-step-plugin that referenced this pull request Aug 7, 2018
orgi pushed a commit to orgi/workflow-durable-task-step-plugin that referenced this pull request Nov 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants