JSON to VariableTFS and Azure DevOps build and release pipeline task that will read a JSON file (not JSON data from an api) and generate build and release variables to be used by other tasks in the build or release process. This gives you the ability to read JSON files available at build or release time, the files can be something located on the File system available to build or release agents, or can be something read in from the Build source code, or in the build Artifact at release time. This means you can create some specific logic in your builds or releases based on the conditions based on JSON that is in Source control. Some uses might be to
I could only publish this update by changing the task ID, which has the unfortunate side-effect of messing up the installation for those who had it previously installed. I've sent a query into the Marketplace team to see why this is happening. NOTE -- with great power comes great responsibility, think through the implications of using this for what you are doing, just because you "Can" do something, doesn't always mean it's the "Right" choice. Azure Dev Ops YAMLsteps: --
FunctionalityThis task reads a JSON file, parses through it an set variable values based on the structure of the JSON that was read in. Variable will be created or updated if the exist already. Input Value usageJSON File The Path to the JSON file to be read in and processed into variables Variable Name Prefix The initial prefix of the Variable names. This lets you specify the root prefix, so you can utilize this task multiple times for multiple files and still organize them accordingly. Images
SourceIssuesCredits |