Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
261 views
in Technique[技术] by (71.8m points)

How to use Variable groups for a Task Group in Azure DevOps

I'm using a variable group to define my proxy variables. As of now I'm linking that variable group to each pipeline I have. But the goal is to use that variable group in reusable task groups as we have 100s of pipelines using a same task group and I don't want to do it manually for each and every pipeline to link that variable group.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I used vso task.set variable to define the variables mentioned mentioned in Var groups in a inline powershell task which works fine.

Write-Host "##vso[task.setvariable variable=HTTP_PROXY;]http://yyyy.com:8080"

Write-Host "##vso[task.setvariable variable=NO_PROXY;].google.com"

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...