Setting DevOps Pipeline variable

%3CLINGO-SUB%20id%3D%22lingo-sub-2686752%22%20slang%3D%22en-US%22%3ESetting%20DevOps%20Pipeline%20variable%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2686752%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20created%20a%20DevOps%20Pipeline%20that%20is%20triggered%20when%20the%20developer%20checks%20in%20the%20code.%20the%20pipeline%20has%20a%20branch%2C%20dependent%20on%20the%20value%20of%20a%20Pipeline%20library%20variable.%3C%2FP%3E%3CP%3EI%20don't%20want%20to%20require%20the%20developer%20to%20have%20to%20change%20the%20variable%20in%20DevOps%20each%20time%20before%20they%20check%20in%20the%20code.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20looking%20for%20a%20way%20to%20control%20that%20from%20within%20Visual%20Studio%20Professional%3C%2FP%3E%3CP%3EI%20thought%20that%20i%20could%20create%20a%20JSON%20file%20that%20contains%20the%20variable%20and%20the%20developer%20would%20set%20the%20value%20in%20the%20file%20before%20checking%20in.%20I%20could%20have%20the%20first%20pipeline%20step%20set%20the%20variable%20and%20then%20the%20following%20steps%20could%20use%20the%20value.%20I%20have%20not%20found%20a%20task%20that%20would%20do%20that.%3C%2FP%3E%3CP%3ECould%20someone%20recommend%20a%20task%20to%20me%3F%20Or%20is%20there%20a%20better%20way%20to%20do%20this%3F%3C%2FP%3E%3CP%3Ethanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2686752%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDevOps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPipelines%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Evariable%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

I have created a DevOps Pipeline that is triggered when the developer checks in the code. the pipeline has a branch, dependent on the value of a Pipeline library variable.

I don't want to require the developer to have to change the variable in DevOps each time before they check in the code.  

I am looking for a way to control that from within Visual Studio Professional

I thought that i could create a JSON file that contains the variable and the developer would set the value in the file before checking in. I could have the first pipeline step set the variable and then the following steps could use the value. I have not found a task that would do that.

Could someone recommend a task to me? Or is there a better way to do this?

thanks

0 Replies