Skip to content
Permalink
Browse files

[JENKINS-42284] Improvement of chcp error handling

The chcp command no more prevents msbuild from running in case of error.
If the command fails, the plugin will still run msbuild so the build can
continue.
  • Loading branch information...
marshall777 committed Oct 7, 2017
1 parent 78cf158 commit c1b2074190a938099e04b2cae88febee88bf32a8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/hudson/plugins/msbuild/MsBuildBuilder.java
@@ -204,7 +204,7 @@ public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListen
if (!doNotUseChcpCommand) {
final int cpi = getCodePageIdentifier(build.getCharset());
if(cpi != 0) {
args.prepend("chcp", String.valueOf(cpi), "&&");
args.prepend("chcp", String.valueOf(cpi), "&");
}
}

0 comments on commit c1b2074

Please sign in to comment.
You can’t perform that action at this time.