New issues with environment variables?

jay's Avatar


25 Sep, 2015 10:05 PM

I'm getting a build failure that seems to be complaining that my encrypted environment variable is null (see attached screenshot). This is a new failure.

My yml file looks like:

  os: Visual Studio 2015
    secure: mickeyMouseLovesChocolate

  - ps: $fileContent = "-----BEGIN RSA PRIVATE KEY-----`n"
  - ps: $fileContent += $env:priv_key.Replace(' ', "`n")
  - ps: $fileContent += "`n-----END RSA PRIVATE KEY-----`n"
  - ps: Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent

Is this a regression in appveyor?

  1. Support Staff 1 Posted by Feodor Fitsner on 25 Sep, 2015 10:36 PM

    Feodor Fitsner's Avatar

    It's not a regression, but secure variables are not set during PR builds (for security reasons).

    - Feodor

  2. 2 Posted by jay on 28 Sep, 2015 06:24 PM

    jay's Avatar

    We're seeing this failure in long running branch builds, not just PR builds. How do you make the determination what is a PR build and can we whitelist branches?

  3. Support Staff 3 Posted by Feodor Fitsner on 28 Sep, 2015 06:26 PM

    Feodor Fitsner's Avatar

    Secure variables are set during regular "push" builds. PR build is the built having a hyperlink to PR details on top of commit message.

  4. 4 Posted by jay on 28 Sep, 2015 10:53 PM

    jay's Avatar

    Got it, thanks.

  5. jay closed this discussion on 28 Sep, 2015 10:53 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? 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