My build script uses the SYSTEM_ACCESSTOKEN
environment variable.
In the designer build definition I checked Allow scripts to access the OAuth token and everything works.
After copying the designer generated YAML definition I cannot access the SYSTEM_ACCESSTOKEN
environment variable.
How do I allow my YAML build to access the OAuth Token?
This is my azure-pipelines.yaml:
queue:
name: Hosted VS2017
steps:
- checkout: self
lfs: true
persistCredentials: true
- powershell: ./build.ps1
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…