tag:help.appveyor.com,2012-11-13:/discussions/problems/11176-environment-variables-corruptedAppVeyor: Discussion 2018-08-25T02:26:25Ztag:help.appveyor.com,2012-11-13:Comment/445034532018-01-13T20:41:36Z2018-01-13T20:41:36ZEnvironment variables corrupted<div><p>I checked your build logs and I am not sure I fully understand the problem. I do not see you print all environment variables and examine those values. I see however you call <code>Get-AzureSqlDatabaseImportExportStatus</code> in the loop. and output of this command has a lot of places replaced with <code>*****</code>. If this is your concern, then this is expected behavior -- security measure preventing keeping <a href="https://www.appveyor.com/docs/build-configuration/#secure-variables">secure variables</a> in clear text.<br>
If your concern is different, then we need more specific information about what specific change broke environment variables and how you examine their values to see if they are broken.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/445034532018-01-15T09:01:16Z2018-01-15T09:01:16ZEnvironment variables corrupted<div><p>Thanks for looking - I hope this helps -</p>
<p>To reproduce</p>
<ol>
<li>I created a new project - Test env</li>
</ol>
<p><a href="https://ci.appveyor.com/project/scascarini/nakedobjectsframework-siinb">https://ci.appveyor.com/project/scascarini/nakedobjectsframework-siinb</a></p>
<ol>
<li>I create two environment variables</li>
</ol>
<p>key1 value1<br>
key2 value2</p>
<p>echo the values out run the build and I see the values echoed as expected</p>
<p>echo %key1%<br>
value1<br>
echo %key2%<br>
value2</p>
<ol>
<li>I go back into the project setting and create a third environment variable<br></li>
</ol>
<p>key3 value3</p>
<p>The two existing environment variables immediately change their name to<br>
"nuget_password" and pick up a value from another project.</p>
<p>and if I run the build I get</p>
<p>echo %key1%<br>
echo is off.<br>
echo %key2%<br>
echo is off.<br>
echo %key3%<br>
value3</p></div>scascarinitag:help.appveyor.com,2012-11-13:Comment/445034532018-01-15T17:46:56Z2018-01-15T17:46:56ZEnvironment variables corrupted<div><p>Can you please press share your build configuration in YAML format? You can do this with <code>Export YAML</code> menu.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/445034532018-01-15T19:54:59Z2018-01-15T19:54:59ZEnvironment variables corrupted<div><p>before after after yaml attached</p>
<p>thanks</p></div>scascarinitag:help.appveyor.com,2012-11-13:Comment/445034532018-01-15T20:14:25Z2018-01-15T20:14:25ZEnvironment variables corrupted<div><p>I see that you simple replaced all your environment variables with <code>nuget_password</code> so results are expected.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/445034532018-01-15T21:51:29Z2018-01-15T21:51:29ZEnvironment variables corrupted<div><p>I'm sorry you don't understand.</p>
<ol>
<li>
<p>I create the project with key1 value1 etc. The variables are as expected.</p>
</li>
<li>
<p>I enter the project settings - the values in the form change themselves - without me doing anything! Yes the yaml has changed that's the point - but I have not changed it!</p>
</li>
</ol>
<p>Perhaps you could try the steps on a test project on my account and see for yourself ?</p>
<p>Thanks</p></div>scascarinitag:help.appveyor.com,2012-11-13:Comment/445034532018-01-15T22:36:37Z2018-01-15T22:36:37ZEnvironment variables corrupted<div><p>I understand but I cannot find the a way to reproduce it. I am sorry, but this can happen only if those two variables were deleted from the Environment tab in the UI.</p>
<p>I wonder if our UI is not intuitive enough and made you delete those variables without noticing that... Maybe you can record a video with a repro. You can use <a href="https://www.screenpresso.com/">Screenpresso</a> which is free and can do it.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/445034532018-01-16T08:42:53Z2018-01-16T08:42:53ZEnvironment variables corrupted<div><p>I have made a video here -</p>
<p><a href="https://drive.google.com/open?id=1f2wWtQPIRcr-nQQXjzr0SkYyh5kKdzqT">https://drive.google.com/open?id=1f2wWtQPIRcr-nQQXjzr0SkYyh5kKdzqT</a></p></div>scascarinitag:help.appveyor.com,2012-11-13:Comment/445034532018-01-16T18:24:50Z2018-01-16T18:24:50ZEnvironment variables corrupted<div><p>Seems like you have some browser add-on, maybe password manager or something like this. I believe that you can get information what is it if you click at what I am pointed in attached pictures.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/445034532018-01-16T19:58:15Z2018-01-16T19:58:15ZEnvironment variables corrupted<div><p>Thanks for your help - sorry I should have see that myself. All sorted.</p></div>scascarinitag:help.appveyor.com,2012-11-13:Comment/445034532018-01-16T20:01:20Z2018-01-16T20:01:20ZEnvironment variables corrupted<div><p>No problem :)</p></div>Ilya Finkelshteyn