Multiple Artifact Paths

Answered

Hi,

 

we want to use the multiple aritfacts paths with multiple Partitions on TC 10.Is this possible and when yes, how?

If it is not possible, is there some Kind of workaround, for this.

Actually we have Artifacts wich are in sum more than 4 Terra. So our Backup Solution does not work very stable and we want to split our Artifacts on mutliple Volumes.

Thanks in Advance

Markus

 

 

0
5 comments
Avatar
Permanently deleted user

Hello!

Yes, multiple artifact paths are possible, relative to artifacts root location. Please refer to https://confluence.jetbrains.com/display/TCD10/Configuring+General+Settings#ConfiguringGeneralSettings-ArtifactPaths - there are some example to help you.

You may try to mount several Volumes inside artifact root directory as different sub-directories.

0

Hi Marina,

 

thx for your answer, but i have another question.

In your Manual i found the following sentence.

"The first found build artifacts directory is used as the source of build artifacts. Artifacts for the newly starting builds are placed under the first directory in the list."

https://confluence.jetbrains.com/display/TCD10/TeamCity+Configuration+and+Maintenance

 

So, when i Mount several Volumes under Subdirs, an one of the Volumes is full, what happens.

 

 

 

0
Avatar
Permanently deleted user

Marcus,

I am sorry to confuse "Artifact Paths" for Build and Global "Artifact Directory" settings.

Yes, for your question you need to add your new Volume path into "Administration > Global Settings > Artifact directories" setting as the first line. This will make TeamCity to put all newly created Build artifacts there, and consider other lines as paths where to look for artifacts when it is needed to get them.

When the Volume is full, you'll need to specify another Volume with enough space as the first line in "Administration > Global Settings > Artifact directories" list.

And your new several Volumes do not need to be sub-directories or mounts inside "Data directory" since both absolute and relative path are supported in "Artifact directories" setting.

0

Hi Marina,

 

first thank you for your answer. but i think, that this Solution is not so good. Isn't there any other Way. With your workflow, i can Change every 2-3 months the Artifact Drive and when the cleanup deletes old Artifacts, i have fragmentation all over my Drives.

So, how about a new Feature for TC. TC uses all Drives in the Artifacts Path.

0
Avatar
Permanently deleted user

Hi Marcus,

Currently TeamCity does not monitor or manage disk space for artifacts, logs, etc. If the first path of Artifacts Directory list is full - the build will fail.

You may want to use the following common approach to improve capacity usage of your Drives.

Add New Volume path to the end of the Artifact directories list.
Create a script that will transfer older artifacts to New Volume by the following algorithm:
- copy a folder with old artifacts from current Volume to New Volume;
- rename the original of the copied folder on current Volume (so TeamCity will not use it as artifacts source anymore);
- delete renamed folder from Old Volume or make the cleanup to delete it (e.g. mark it).

And if you think you need the feature - please submit a ticket to https://youtrack.jetbrains.com/issues

 

0

Please sign in to leave a comment.