Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 c1b2074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/msbuild/MsBuildBuilder.java
Expand Up @@ -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), "&");
}
}

Expand Down

0 comments on commit c1b2074

Please sign in to comment.