Buradasın
Setting Variables in Azure Pipelines Scripts
learn.microsoft.com/en-us/azure/devops/pipelines/process/set-variables-scripts?view=azure-devopsYapay zekadan makale özeti
- Basic Concepts
- PowerShell and Bash scripts can set variables for future tasks
- New variables aren't available in same task by default
- Scripts are useful for custom API calls and response parsing
- Variable Properties
- Task.setvariable command sets variables with secret, output, and read-only options
- Variables can be accessed using macro syntax $(myVar)
- Variables can be made read-only to prevent overwriting
- Output Variable Types
- Same-job variables accessible without isOutput parameter
- Future job variables require dependsOn property
- Future stage variables accessible using stageDependencies syntax
- Troubleshooting
- Output variables may not render due to variable syntax issues
- Extra spaces around isOutput=true can cause problems
- Runtime syntax recommended for output variable setting