Forum Discussion
Rainer_Muehlberger
Jan 21, 2022Copper Contributor
How to remove a property from Azure DevOps Builddefinition in typescript?
Hello,
I want to remove a builddefinition variable in a Azure DevOps Build Pipeline in typescript because I'm implementing a custom build task.
I know, there is a "UpdateDefinitonProperties" method inside the interface IBuildapi (module
azure-devops-node-api/BuildApi), but how do I have to code this to remove a variable during the run of the build?
It is used for migration purposes to set a special revision number for the first run.
BR,
Rainer
It is used for migration purposes to set a special revision number for the first run.
BR,
Rainer
- inboxkrish7129Copper ContributorHow about using a variable?
Is it not the solution here!- Rainer_MuehlbergerCopper Contributor
Hello inboxkrish7129,
Thank you for the feedback.
But it's already a variable, which should be removed after the first run of the pipeline.
In Powershell we did it as described here:
https://stackoverflow.com/questions/62406386/azure-pipeline-how-to-delete-a-variable-inside-azure-build-pipeline
But now we have to support Linux also.