Secure environment variables
I'm having some trouble getting secure environment variables to work properly. For example, on this [1] build, the relevant part of the appveyor.yml file is
environment:
global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter
# See: http://stackoverflow.com/a/13751649/163740
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\continuous-integration\\appveyor\\run_with_env.cmd"
# See README for information on the token
BINSTAR_TOKEN:
secure: rzQaJp/nba5u2lYZ2hR7xiTenDw/1ye5CirIIspaTbM=
binstar_token:
secure: rzQaJp/nba5u2lYZ2hR7xrkIauvhO7M4P9XVr63a4GVR93oo5KRun7Mrnvg/L2bf
But tying to echo the variable (it's not actually sensitive, I'm currently just debugging).
ps: "echo %BINSTAR_TOKEN%"
ps: "echo %binstar_token%"
gives just the literal string "%BINSTAR_TOKEN%", or "%binstar_token%".
[1] https://ci.appveyor.com/project/rmcgibbo/python-appveyor-conda-exam...
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
Support Staff 1 Posted by Feodor Fitsner on 28 Jul, 2014 04:30 AM
If you want to use PowerShell then it should be (no need to call it twice - env vars are case-insensitive):
otherwise change to
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:46 AM.