Pipeline task that calculates extra Azure DevOps related environment variables.
This extension is now unpublished from Marketplace. You can choose to uninstall it.
Calculate extra Azure DevOps variables
Contains the Calculate extra Azure Devops variables pipeline task that calculates extra Azure DevOps related environment variables
Calculated extra variables
Environment Variable
Meaning
EXTRAVARIABLES_ACTIVESPRINT
Name of the sprint active on day of commit. Is null when no active, or multiple active sprints. Uses use current time if task runs outside a build. Note: only your team iterations are considered.
Usage
Add the Calculate extra Azure Devops variables task to your pipeline. In the followup pipeline tasks you can use the calculated extra variables in the same way as you use the Azure DevOps predefined variables.
yaml pipeline
steps:
- task: FlorisDevreese.calculate-extra-azure-devops-variables.task.task@1
displayName: 'Calculate extra Azure Devops variables'
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken) # must provide access to SYSTEM_ACCESSTOKEN
- pwsh: 'Write-Host "use variable like this: $env:EXTRAVARIABLES_ACTIVESPRINT"'
displayName: 'or like like this: $(EXTRAVARIABLES_ACTIVESPRINT)'
Classic build
Contribute
For the moment only one extra variable is calculated. If you have ideas for other variables that could be calculated, just give a shout, or create a pull request. All help is welcome 😎!