Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hey24sheep/azure-environment-variables

Azure DevOps Pipeline task to create environment variables with custom values/paths
https://github.com/hey24sheep/azure-environment-variables

azure azure-devops azurepipeline azurepipelines devops pipelines

Last synced: 26 days ago
JSON representation

Azure DevOps Pipeline task to create environment variables with custom values/paths

Awesome Lists containing this project

README

        

# Azure Environment Variables Extension

[![](https://img.shields.io/badge/hey24sheep.com-202124.svg?style=for-the-badge&logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAADIAAAAcCAMAAAAURxzFAAAADFBMVEUAAAAbvfUcvfUcvfXEslmQAAAAA3RSTlMA4PgXbk0cAAAATElEQVR42u3RgQbAMAyE4dvu%2Fd95Y%2FiHkRyEkUPTK5%2BqajMZ32FH00kriWltYkqDsHJekmd8AQiBvPWfSPH8iPhQcEv0lYycCDGWzQW5CAN5SL8q5AAAAABJRU5ErkJggg%3D%3D)](https://hey24sheep.com)

![](https://img.shields.io/visual-studio-marketplace/release-date/hey24sheep.envar?color=green&style=flat-square)
![](https://img.shields.io/visual-studio-marketplace/azure-devops/installs/total/hey24sheep.envar?style=flat-square)
![](https://img.shields.io/visual-studio-marketplace/last-updated/hey24sheep.envar?style=flat-square)
![](https://img.shields.io/visual-studio-marketplace/r/hey24sheep.envar?color=green&style=flat-square)
![](https://img.shields.io/visual-studio-marketplace/v/hey24sheep.envar?label=current%20version&style=flat-square)

Buy Me A Coffee

"Environment Variables" is a DevOps Pipeline task extension to create or override 'Environment Variables' with dynamic/custom values/paths based on tasks or static data.

Sometimes there is a need to create or override an environment variable during build either based on a task, maybe override a var created by another task or create a new cache restore directory env var.

# Installation

Installation can be done using [Visual Studio MarketPlace](https://marketplace.visualstudio.com/items?itemName=hey24sheep.envar). Just login to your Azure DevOps Org and click on "Get it free" button and follow the installation process.

# How to use

To use the task, go to your pipeline -> build definition and add "Environment Variables" to your build definition.

## Config

- `Environment Variables (comma separated)` : Set environment variable `key=value` (`separated by ','`). Example input like "`webpack=$(Pipeline.Workspace)/sdks/webpack, flutterToolPath=cacheFolder/flutter, isProd=true, flavor=prod-internal, arg1=something`". Note : Do not use spaces in name.

You can use the variable just like any other variable like `$(webpack)`, `$(isProd)`.

## More

Check out my other useful **Flutter** packages on [pub.dev](https://pub.dev/publishers/hey24sheep.com/packages)
or more **DevOps** extensions on [marketplace](https://marketplace.visualstudio.com/publishers/Hey24sheep)

# Rate the extension


Don't forget to rate the extension if you find it useful

# Support


PRs are always welcome. Feel free to create an issue if you have any issues.

Don't forget to star this repo, thanks 👍

## License

[MIT](https://github.com/hey24sheep/azure-environment-variables/blob/main/LICENSE)