Build chain with DSL: How share files between build types?

Answered

Which is the correct way to share files between the build types? Like the result of the first compile step should be the input for the next parallel steps 'unitTests' and 'integrartionTests'. Thats a typical way to parallel a java build pipeline.

There have to be a intended way to do it with the Build Chain DSL Extension explained here https://www.jetbrains.com/help/teamcity/kotlin-dsl.html#KotlinDSL-BuildChainDSLExtension

0
1 comment

Hi Lars,

 

as you will see from the other response I just sent, this build chains are built on top of TeamCity's dependencies system. In particular, transferring files between build types is done via artifact dependencies. We have not found a good syntax yet to add them to the DSL as is, so the only current way to do it is define the artifacts that a build publishes and the artifact of the dependencies directly on the build types themselves (or via kotlin's "apply" extension function directly on the objects)

 

More information on artifact dependencies is available here: https://www.jetbrains.com/help/teamcity/artifact-dependencies.html

And for a build to be able to depend on an artifact, the build that provides the artifact has to publish it via its artifact paths: https://www.jetbrains.com/help/teamcity/configuring-general-settings.html

 

We are working on integrating this features directly into the build chain dsl extension, but I'm afraid it's not quite ready yet.

0

Please sign in to leave a comment.