Closed nwchandler closed 5 years ago
Hi @nwchandler - does addBuildTags
really overwrite?? I would be surprised. If that is the case, then perhaps the solution is to getBuildTags
first, then append the new tag (if it doesn't exist) and then call addBuildTag
. Happy to accept PRs!
Hi, @colindembovsky - Well, it seems that yesterday must have just been a long day or something. I swear I validated that posting to the tag path would overwrite existing tags, and as I was typing up a response to you this morning, I decided to verify one last time. And, it appears I was wrong. I confirmed this morning that posting does NOT overwrite them. I must be overwriting my tags someplace else. 🤦♂️
Sorry for bugging you, but thanks for the quick response yesterday!
@nwchandler Glad you came unstuck!
It appears that the Tag Build functionality currently overwrites tags on a build without an option for appending them. Specifically, Tasks/TagBuild/tagBuild.ts calls addBuildTags from the Azure DevOps node API / build API, which will replace the tags on a build with an input list. If there were a mechanism to optionally call addBuildTag, it looks like it would simply append a new tag.
Has this been investigated in the past? If there is no reason NOT to include it, would you be open to a PR?