Unable to set environmental variable

Martin Pugh's Avatar

Martin Pugh

15 Apr, 2019 07:54 PM

I've been using this code for a couple of years now:

environment:
  PSGalleryAPIKey:
    secure: KgC+MGyzuxPQDoQkBVowVDuSsxIZrKdA+B0+l2U6tk+9t4oD07z4zZj8Rk56tfBn

And it's always worked. Suddenly today (after working earlier in the day) it no longer works. I'm not receiving any error messages and am at a loss as to what to do.

This is under PSModuleBuild in my account.

  1. Support Staff 1 Posted by Owen McDonnell on 15 Apr, 2019 08:28 PM

    Owen McDonnell's Avatar

    Is this for a pull request build perhaps?
    If so it's because secure variables are not decoded for PR builds.
    https://www.appveyor.com/docs/build-configuration/#secure-variables

  2. 2 Posted by Martin Pugh on 16 Apr, 2019 09:47 AM

    Martin Pugh's Avatar

    Yep, that's exactly what it is. Thanks for the help!

  3. Owen McDonnell closed this discussion on 16 Apr, 2019 02:38 PM.

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

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