testingbot / testingbot-teamcity-plugin

Plugin to integrate TestingBot.com automated testing with TeamCity
Apache License 2.0
0 stars 0 forks source link

Build tags set during the build execution disappear after the build finishes #1

Open tolache opened 1 year ago

tolache commented 1 year ago

Steps

  1. Install TestingBot 1.0 on TeamCity 2023.05.1.
  2. Add a command line step with the following command to a build: echo "##teamcity[addBuildTag 'SomeTag']".
  3. Run the build.

Expected

The tag "SomeTag" is added to the build during the execution and is kept after the build is finished.

Actual

The tag is added when the build is running, but is removed after the build is finished.

aldpuzz commented 11 months ago

it's likely this line:

https://github.com/testingbot/testingbot-teamcity-plugin/blob/c05267a62b6a17a1d85efc7c5007e3f4ab5cecd5/testingbot-teamcity-server/src/main/java/com/testingbot/teamcity/plugin/TestingBotServerAdapter.java#L55

It should merge the two sets instead of replacing it