# All Windows commands stopped working

**URL:** https://travis-ci.community/t/all-windows-commands-stopped-working/3448
**Category:** Windows
**Created:** [May 19, 2019, 2:11pm UTC](https://travis-ci.community/t/all-windows-commands-stopped-working/3448 "2019-05-19T14:11:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![JanC](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/janc/32/1826_2.png) [@JanC](https://travis-ci.community/u/JanC)
#### Post date: [May 19, 2019, 2:11pm UTC](https://travis-ci.community/t/all-windows-commands-stopped-working/3448/1 "2019-05-19T14:11:48Z")

</div>

Hi,  
I managed to setup a travis.yml that compiles a Visual Studio solution.

The travis job was working just fine yesterday

[https://travis-ci.org/JanC/XPlaneConnect/jobs/534123814](https://travis-ci.org/JanC/XPlaneConnect/jobs/534123814)

```
C:\Users\travis\build\JanC\XPlaneConnect>MSBuild.exe xpcPlugin/xpcPlugin/xpcPlugin.sln /p:Configuration=Release
Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

```

(rest of the build output is omitted but the build completes fine)

The same config stopped working today without any changes made to the project or .yml file

[https://travis-ci.org/JanC/XPlaneConnect/jobs/534452876](https://travis-ci.org/JanC/XPlaneConnect/jobs/534452876)

```
C:\Users\travis\build\JanC\XPlaneConnect>MSBuild.exe xpcPlugin/xpcPlugin/xpcPlugin.sln /p:Configuration=Release 

```

The job ends at this point without any other output from MSBuild.exe

Update: I noticed that all windows commands just fail without any error or info message  
[https://travis-ci.org/JanC/XPlaneConnect/jobs/534523993](https://travis-ci.org/JanC/XPlaneConnect/jobs/534523993)

any ideas?

---

<div class="post-metadata">

### Author: ![JanC](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/janc/32/1826_2.png) [@JanC](https://travis-ci.community/u/JanC)
#### Post date: [May 20, 2019, 9:19am UTC](https://travis-ci.community/t/all-windows-commands-stopped-working/3448/2 "2019-05-20T09:19:53Z")

</div>

Even a minimal .travis.yml does not work:

```
language: cpp
os: windows
env:
  - MSBUILD_PATH="/C/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/MSBuild/15.0/Bin"
script:
  - export PATH=$MSBUILD_PATH:$PATH
  - MSBuild.exe -help

```

The job fails silently on:

```
export PATH=$MSBUILD_PATH:$PATH
The command "export PATH=$MSBUILD_PATH:$PATH" exited with 0.
$ MSBuild.exe -help
```

---

<div class="post-metadata">

### Author: ![JanC](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/janc/32/1826_2.png) [@JanC](https://travis-ci.community/u/JanC)
#### Post date: [May 20, 2019, 10:14am UTC](https://travis-ci.community/t/all-windows-commands-stopped-working/3448/3 "2019-05-20T10:14:43Z")

</div>

I also noticed that on Travis staging, it seems to work as expected:  
[https://github-apps-staging.travis-ci.com/JanC/XPlaneConnect/jobs/330138](https://github-apps-staging.travis-ci.com/JanC/XPlaneConnect/jobs/330138)

```
$ MSBuild.exe -help
Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
```

---

<div class="post-metadata">

### Author: ![JanC](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/janc/32/1826_2.png) [@JanC](https://travis-ci.community/u/JanC)
#### Post date: [May 23, 2019, 7:57pm UTC](https://travis-ci.community/t/all-windows-commands-stopped-working/3448/4 "2019-05-23T19:57:44Z")

</div>

To answer my own question, this is due to the secrets not being supported on Windows 😕

> [@Current known issues — Please read this before posting a new topic](https://travis-ci.community/t/current-known-issues-please-read-this-before-posting-a-new-topic/264/10):
>
> Secrets-Are-Killing-Windows Current Summary Issuepoint_right point_right If you have a secure variable, Windows will hang. In other words, a Travis CI encrypted environment variable in .travis.yml OR an environment variable in the Travis CI UI that doesn’t have “Display value in build log” checked, will cause a Windows job to hang. Fix Schedule Travis CI staff have not provided any estimate for a fix. In [Oct. 2018](https://travis-ci.community/t/choco-install-hangs-forever/307/6), @josh said “we are working to address this.” Also, [here](https://travis-ci.community/t/docker-windows-containers-on-windows/427/7). That’s the latest…
