Environment variables corrupted

scascarini's Avatar

scascarini

13 Jan, 2018 06:36 PM

On all my projects the environment variables seem to have been corrupted. They all show with the same name. As long as I make no changes to settings they seem OK but if I save anything they lose their value and my builds start to have problems.

eg https://ci.appveyor.com/project/scascarini/nakedobjectsframework-bt...

  1. Support Staff 1 Posted by Ilya Finkelshte... on 13 Jan, 2018 08:41 PM

    Ilya Finkelshteyn's Avatar

    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 Get-AzureSqlDatabaseImportExportStatus in the loop. and output of this command has a lot of places replaced with *****. If this is your concern, then this is expected behavior -- security measure preventing keeping secure variables in clear text.
    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.

  2. 2 Posted by scascarini on 15 Jan, 2018 09:01 AM

    scascarini's Avatar

    Thanks for looking - I hope this helps -

    To reproduce

    1. I created a new project - Test env

    https://ci.appveyor.com/project/scascarini/nakedobjectsframework-siinb

    1. I create two environment variables

    key1 value1
    key2 value2

    echo the values out run the build and I see the values echoed as expected

    echo %key1%
    value1
    echo %key2%
    value2

    1. I go back into the project setting and create a third environment variable

    key3 value3

    The two existing environment variables immediately change their name to
    "nuget_password" and pick up a value from another project.

    and if I run the build I get

    echo %key1%
    echo is off.
    echo %key2%
    echo is off.
    echo %key3%
    value3

  3. Support Staff 3 Posted by Ilya Finkelshte... on 15 Jan, 2018 05:46 PM

    Ilya Finkelshteyn's Avatar

    Can you please press share your build configuration in YAML format? You can do this with Export YAML menu.

  4. 4 Posted by scascarini on 15 Jan, 2018 07:54 PM

    scascarini's Avatar

    before after after yaml attached

    thanks

  5. Support Staff 5 Posted by Ilya Finkelshte... on 15 Jan, 2018 08:14 PM

    Ilya Finkelshteyn's Avatar

    I see that you simple replaced all your environment variables with nuget_password so results are expected.

  6. 6 Posted by scascarini on 15 Jan, 2018 09:51 PM

    scascarini's Avatar

    I'm sorry you don't understand.

    1. I create the project with key1 value1 etc. The variables are as expected.

    2. 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!

    Perhaps you could try the steps on a test project on my account and see for yourself ?

    Thanks

  7. Support Staff 7 Posted by Ilya Finkelshte... on 15 Jan, 2018 10:36 PM

    Ilya Finkelshteyn's Avatar

    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.

    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 Screenpresso which is free and can do it.

  8. 8 Posted by scascarini on 16 Jan, 2018 08:42 AM

    scascarini's Avatar

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac