How to add secret variable as task environment variable in VSTS

前端 未结 3 1196
甜味超标
甜味超标 2021-01-12 00:46

This documentation states that secret variables are

Not decrypted into environment variables. So scripts and programs run by your build steps are not

3条回答
  •  自闭症患者
    2021-01-12 01:26

    When using the YAML-syntax this can be achieved too:

    steps:
    - script: |
        echo %MYSECRET%
      env:
        MySecret: $(Secret_Variable)
    

提交回复
热议问题