So, if you specify the following example line: +:test.7z => test/test.7z It tells TeamCity to take the test.7z file, put it in the test directory, and archive it in the test.7z archive. To just publish the test.7z artifact in the test directory, the following line can be used as an example: +:test.7z => test
As per the documentation (https://www.jetbrains.com/help/teamcity/configuring-general-settings.html#Artifact+Paths), the artifact path takes the following line format:
file_name|directory_name|wildcard [ => target_directory|target_archive ]
So, if you specify the following example line:
+:test.7z => test/test.7z
It tells TeamCity to take the test.7z file, put it in the test directory, and archive it in the test.7z archive.
To just publish the test.7z artifact in the test directory, the following line can be used as an example:
+:test.7z => test
Best regards,
Anton