nuke icon indicating copy to clipboard operation
nuke copied to clipboard

Teamcity specific Target as Composite build type

Open jakubsuchybio opened this issue 3 years ago • 0 comments

Description

Hi, TeamCity has a feature to make some Target composite. Definition of composite build from teamcity: A composite build does not occupy an agent; as a result, some settings which require an agent (for example, build steps or requirements) are not applicable.

For Teamcity it is important, because this kind of Target is used for top-level Target which acts as a chain.

Additional Information: After speaking on Slack @matkoch mentioned:

If it can become a collective target, then this could be done I think nuke/blob/develop/source/Nuke.Common/CI/TeamCity/TeamCityAttribute.cs#L194

Usage Example

e.g. In this example:

The Target_Pipeline doesn't have any steps, it is just a common denominator of all dependencies in the chain.

Alternative

I found kinda hack how to get around this, but it doesn't involve nuke. It is possible to make this happen, when nuke creates this target as Regular BuildType, then inside Teamcity GUI by changing it manually, it creates patch kotlin file for this build configuration. After another build of nuke's TC kotlin settings, it doesn't overwrite this patch. But I'd rather have an option to do this from nuke... :)

jakubsuchybio avatar Jan 19 '22 06:01 jakubsuchybio