TEamcity- Artifacts Paths

I have a situation where in a project where new binaries gets added everyday and old binaries gets removed , this is creating a problem for me as I can not read what  "Artifacts paths" contains dynamically ( Artifacts creation).

Is there a way where I can have developers modify a flat file (add/remove files) than I can read that files , include artifacts paths from this build, do the build and always have correct artifacts in teamcity build?

 

 

0
4 comments

Hi,

 

you can configure artifact paths via the DSL if you are using it. The "Artifacts paths" also allows for wildcards, so you could simply add a wildcard onto it. This would be particularly useful if the build process creates all of its artifacts in the same folder or set of folders, which would be ideal.

 

0

Hey Denis,

I am not familiar with Kotlin DSL, is there a sample you could point me to, where artifacts are configured and read dynamically?

0

Hi,

 

I wanted to point out that "dynamically" is still limited in the DSL. You can do it programatically on the DSL, but once the code reaches the server, it will be parsed and read into static build configurations. The main difference being that, for a build, you can read the state of the DSL from the repository where it's stored if you configure the versioned settings to use the settings from the repository. You can find more information about our DSL, including examples in our blog post: https://blog.jetbrains.com/teamcity/2016/11/kotlin-configuration-scripts-an-introduction/

and our docs: https://confluence.jetbrains.com/display/TCD18/Kotlin+DSL

0

Hello,

Can you please provide me with a specific example about how to declare the artifact paths for a build type with kotlin DSL?

Thanks!

0

Please sign in to leave a comment.