Forum Discussion

Rainer_Muehlberger's avatar
Rainer_Muehlberger
Copper Contributor
Jan 21, 2022

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
 

2 Replies

    • Rainer_Muehlberger's avatar
      Rainer_Muehlberger
      Copper Contributor

      Hello inboxkrish17,
      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.

Resources