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

Recent Discussions

13 Dec, 2019 05:26 PM
13 Dec, 2019 11:28 AM
12 Dec, 2019 09:36 PM
12 Dec, 2019 09:25 PM
12 Dec, 2019 06:01 PM

 

11 Dec, 2019 11:29 PM
11 Dec, 2019 08:47 PM
11 Dec, 2019 01:39 PM
10 Dec, 2019 12:29 AM
09 Dec, 2019 05:35 AM
07 Dec, 2019 04:20 PM