简体   繁体   中英

Custom Build variables

My Company works with custom buildsteps based on Powershell scripts.

My task now is to verify whether it is possible to 'export' Variables form these scripts to the global build variables available in tfs itself? Somewhat like $env:build_Myvairable (in script) / $(build.myvariable) (on Tfs).

You can set variables that can be used in subsequent build tasks in TFS/VSTS by writing:

"##vso[task.setvariable variable=testvar;]testvalue"

Out to the log... This will create or update a build variable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM