2

We have TFS2015 and build definition that look like following:

enter image description here

When I trigger the build I get output with wrong character encoding:

2016-09-07T11:40:29.2722404Z ΓööΓöÇΓöÇ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) 2016-09-07T11:40:29.2722404Z [email protected] node_modules\run-sequence 2016-09-07T11:40:29.2722404Z ΓööΓöÇΓöÇ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected]) 2016-09-07T11:40:29.2722404Z [email protected] node_modules\vinyl-source-stream 2016-09-07T11:40:29.2722404Z Γö£ΓöÇΓöÇ [email protected] ([email protected], [email protected]) 2016-09-07T11:40:29.2722404Z ΓööΓöÇΓöÇ [email protected] ([email protected], [email protected]) 2016-09-07T11:40:29.2722404Z [email protected] node_modules\gulp-concat 2016-09-07T11:40:29.2762404Z Γö£ΓöÇΓöÇ [email protected] ([email protected]) 2016-09-07T11:40:29.2762404Z ΓööΓöÇΓöÇ [email protected] ([email protected], [email protected]) 2016-09-07T11:40:29.2762404Z [email protected] node_modules\vinyl-buffer 2016-09-07T11:40:29.2762404Z Γö£ΓöÇΓöÇ [email protected] ([email protected], [email protected]) 

Any idea how to fix it?


EDIT: When I log to the Build Server VM and run npm install from command prompt, I get correct output:

[email protected] node_modules\run-sequence └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected]) [email protected] node_modules\merge-stream └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) [email protected] node_modules\vinyl-source-stream ├── [email protected] ([email protected], [email protected]) └── [email protected] ([email protected], [email protected]) 

DEV-MACHINE ENVIRONMENT:

OS Name: Microsoft Windows 10 Enterprise Active code page: 437 (both build server and dev machine) System Locale: sk;Slovak Node version: 5.10.1 NPM version: 3.8.5 

BUILD SERVER ENVIRONMENT

OS Name: Microsoft Windows Server 2012 R2 Standard Active code page: 437 (both build server and dev machine) System Locale: en-us;English (United States) Node version: 5.10.1 NPM version: 3.8.5 

TFS Version is 14.102.25423.0 (Update 3), but it resides on another server, where I don't have access. I see only the webportal.

Steps to reproduce:

  1. npm init
  2. npm install run-sequence --save-dev
  3. push to TFS Git repository
  4. create build definition with single step: npm install
  5. queue new build
2
  • What's the version of npm? Commented Sep 9, 2016 at 5:20
  • OK, after I upgraded NPM to 5.10.1, it started to work. Previously there was installed current LTS release (4.x) Commented Sep 9, 2016 at 7:20

2 Answers 2

1

Since you mentioned that it works when run npm install from command prompt, you can also add a "Command Line" task in your build definition to run the npm install command. enter image description here

Sign up to request clarification or add additional context in comments.

Comments

0

I have tried a gulp imagemin task in my build, but couldn't reproduce your issue on my side. In order to narrow down the issue, please check:

  1. Whether the TFS 2015 has upgraded to the latest edition Update 3.
  2. Check whether the npm is the latest version on your build server.
  3. Manually run gulp task on build agent server to see whether the issue can be reproduced.
  4. If the options above not work, please share detailed setting of your build tasks, I'd like to set up a same environment to check whether your issue can be reproduced.

2 Comments

Please see my edit for details. It is not gulp task, but npm install, whose output is incorrectly displayed.
not 100% sure, but upgrading NPM probably solved it.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.