ArtifactsCachePublisher VS WebPublisher

Answered

Hi,

Is there a difference between ArtifactsCachePublisher VS WebPublisher? perhaps WebPublisher is ensuring that artifacts are available to download via TeamCity web interface and ArtifactsCachePublisher is publishing artifacts into a cache?

 

Is there a way to disabled either/or?

 

Appreciate your prompt response.

0
5 comments

Hi,

sorry for the delay. The publishers do what you meant, the WebPublisher, more than "available to download via TeamCity web interface", posts them back to the TeamCity server, where they are used for internal purposes, as some internal, hidden artifacts are published for every build including properties, logs, etc.

Disabling the ArtifactsCache is possible and specified in our documentation here: https://confluence.jetbrains.com/display/TCD10/Free+disk+space#Freediskspace-Configuringartifactscache

Before deactivating them, though, we would like to ask why you want to disable them.

0
Avatar
Permanently deleted user

Hi Denis,

 

Thanks for your response, one of our artifacts is taking more than 3 hours to create (around 3.5 GB) , as such we do not have a need to publish this artifact but there is a requirement to make this artifact available via TC UI.

 

HTH

0

Hi,

if you need to have the artifact displayed in the UI, teamcity needs to have it in the server. Artifacts are generated in agents, so it needs to be "published" (a.k.a. transferred) to the server, so I'm afraid that the WebPublisher will need to stay if you need the artifact to be displayed in the UI.

If you don't need the file to be available in the server (if you use the UI only to confirm it was created, not for download, nor used as artifact dependency for any subsequent build, just used in a following build step to deploy, for example), you might consider adding a new build step with a verification that the file was correctly created, create an empty file confirming its creation and then simply publishing that as the artifact, so users can have the reference that the file was created.

0

Even though we have disabled the artifact cache still teamcity is trying to update the artifact.

We have set this property in agent configuration property

teamcity.agent.filecache.publishing.disabled  true
 
Also we are getting the below error even though webpublisher succeeds
 
[Publishing artifacts] Publishing 2 files using [WebPublisher]: //1062589-DANSQA/DevOps_QA_Work/DevOps/POC_Test_Builds/2022.2.0.9/*.zip
[04:07:10][Publishing artifacts] Publishing 2 files using [ArtifactsCachePublisherImpl]: //1062589-DANSQA/DevOps_QA_Work/DevOps/POC_Test_Builds/2022.2.0.9/*.zip
[04:12:39][Publishing artifacts] Artifacts path '//1062589-DANSQA/DevOps_QA_Work/DevOps/POC_Test_Builds/2022.2.0.9/*.zip' not found
0

Hi. This output is normal. You should see this line in the verbose build log:

Publishing to local artifacts cache is disabled, skipping.
0

Please sign in to leave a comment.