JSON Transform Task in Build Definition in VSTS

Ankush Jain

I am using VSTS for CI/CD process in my project.

As of now, we have few config files in project with *.deployment.config extension. We are using XDT Transform task in build definition which applies transform to all files having extension *.deployment.config.

Similarly, I am looking for a task to transform my json files. I want to keep *.deployment.json files and want them to be transformed into .json file on build.

I also got one task, mentioned below. But this will transform only one file at a time. Hence, we will have to create multiple tasks for multiple json files.

https://marketplace.visualstudio.com/items?itemName=sergeyzwezdin.magic-chunks

Could anyone please suggest a better way?

starian chen-MSFT

No built-in tasks/extensions can transform multiple json files, there is a related extension: File Patch Build and Release Tasks.

On the other hand, you can build a custom task through VSTS extension: Add a build or release task

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

VSTS: Pass build/release variables into Powershell script task

Run VSTS Build/Release Task only when previous task errors

How to specify folder for build definition in VSTS

VSTS build definition - prevent PowerShell exit behavior causing processes termination

VSTS - Build Definition - Multiple Agents

VSTS Build Task Input Types

VSTS Build Definition : adding multiple feeds in Nuget restore task

How to enabled verbose logs in VSTS Release definition task?

Issue when updating build definition using the REST api of VSTS

VSTS webpack build task cannot find CLI

Dictionary type input in the VSTS Build/Release Task

Build multiple projects/repositories with one build definition VSTS

How to get reason for failure of a previous task in vsts CI build

VSTS build number for build definition

Download Build Artifacts in vsts not able to get latest build of a specific build definition

Unable to issue a git pull command from a VSTS Build Process task

How to build with --prod flag in VSTS build definition in azure

Clone VSTS Build Definition in C#

How to use $(Rev:r) in VSTS build definition?

Continuous Integration on VSTS - Build Definition: No Files - System.AggregateException

Migrating a build definition from TFS to VSTS

Parameterize Azure subscription in Vsts build task

VSTS Build definition for Xamarin Android always fails with error " A supported task execution handler was not found. T..."

VSTS - I want to use an existing deployment definition for a new build

Need the mail to be triggered upon success or failure of Build or release definition in VSTS

Build definition for NETCore2 WebJob in VSTS

How to Call Json parameters as arguments via Powershell task in VSTS release definition?

What's the difference between description and helpMarkDown in VSTS build task (task.json) file

VSTS YAML pipeline - pass project repository as parameter for the existed build definition