VSTS: Pass build/release variables into Powershell script task

前端 未结 4 1824
忘掉有多难
忘掉有多难 2020-12-04 16:32

Ideally, I would want to configure our Azure Web App application settings using build variables (on VSTS), for example:

We perform our publish tasks using P

4条回答
  •  北海茫月
    2020-12-04 17:09

    It is worth mentioning here, that secret variables are not passed into scripts as environment variables (env: in PS). So accessible only if passed as parameters for a script, eg. -MyPassword $(Password). See https://docs.microsoft.com/en-us/vsts/pipelines/build/variables?view=vsts&tabs=batch#secret-variables

提交回复
热议问题