Portable Kotlin: artifact dependency IDs and agent requirement IDs

To start off: I am not asking about project IDs.

When I converted all my TeamCity projects/build configurations to use portable Kotlin DSL I got some nice looking, editable Kotlin. However, I noticed that there are IDs littered all over the place, specifically when defining agent requirements (i.e. RQ_44) and artifact dependencies (i.e. ARTIFACT_DEPENDENCY_11). When I write new Kotlin to add new requirements or dependencies, can I safely omit these IDs? If not, how am I supposed to know what IDs to use? Why is the UI generating this ID into my Kotlin if its not necessary?

 

0
1 comment

Hi,

 

You can safely omit IDs when generating your own Kotlin code. TeamCity uses this IDs to reference the objects, if they aren't found, they will be generated. This means that they're safe to be ignored, as well as that they are added so that the own instance of TeamCity doesn't need to use resources regenerating something that already exists.

 

Hope this answers your questions.

0

Please sign in to leave a comment.