Artifactory deletes artifacts of previous builds

Martin Melka

We want to use Artifactory with TeamCity CI for our production. I am in the process of testing it and now I found a problem. This is what happens:

I am using the generic repository.

There are 2 jobs, producer (deploys some artifacts) and consumer (only downloads them).

  • producer with build number #1 deploys 5 artifacts into Artifactory via the Artifactory Plugin.
  • consumer is set to resolve artifacts of the producer build. All 5 are downloaded.
  • producer with build number #2 is run again, again deploying 5 artifacts.
  • consumer is now set to resolve artifacts of the producer build of number #1. Only 2 of the 5 artifacts are downloaded.

The same thing happens when using the REST API - downloading artifacts of the newest build is okay, all the artifacts are downloaded. But when I try to download artifacts of the older builds, only some are.

I have not set up any cleanup policy, so artifacts should not be deleted.

The artifacts from producer build #1 and #2 may or may not be the same - in both cases I want to download all of them.

Is there something I am not getting right? It looks as if the older artifacts are, for some reason, thrown away with the new build.

When I view the published artifacts of the build I want in Artifactory web GUI, it says No path found (externally resolved or deleted/overwritten) next to it.

Dror Bereznitsky

If you want to keep versions of the deployed artifacts they must be deployed with a unique path/file name.
Otherwise, Artifactory will override the artifact which already exist in this path. Notice that this is a different behavior from a version control tool which keeps revisions of the same file. This makes less sense when it comes to binaries, as the binary diff is usually not that useful.
The build info only keeps metadata about your build, but it does not take care of versions.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Azure pipeline build artifacts for previous builds

How can I download all artifacts for appended builds in Artifactory?

JFrog Artifactory artifacts uploaded via jenkins dont show up in builds

Overwriting Artifactory artifacts (and history)?

Upload artifacts to artifactory with python

Uploading artifacts to JFrog Artifactory

Download artifacts archive from Artifactory

Artifactory: copy artifacts to new instance

Pull all artifacts from Maven Artifactory instead of just JAR artifacts

How to publish custom artifacts to Artifactory from TeamCity?

How to versionate artifacts on Artifactory without overwriting

Jenkins Artifactory plugin - grabbing latest artifacts

Remove Artifacts that were Deployed to Artifactory Repo with Maven

Jenkins and JFrog Artifactory - artifacts are not deleted after "maxBuilds"

IntelliJ/Maven not updating artifacts from Artifactory

Artifactory is caching artifacts that I didn't intend

Artifactory - delete artifacts older than 20 days

Is there anyway to manually cache remote artifacts in Artifactory?

Artifactory has lost track of local artifacts

list all artifacts in a repository on JFrog Artifactory

artifactory flag artifacts as 'integration' not working so far

Cleanup old artifacts from Jfrog artifactory OSS

Artifactory API - List all artifacts for a package version

IOS emdash deletes previous character

Cannot see the builds after publishing the artifacts

Copying artifacts between builds in Team Services

Artifactory aql: find builds of job with given property

How to upload .net core build artifacts into JFrog Artifactory Cloud

Do artifacts exist as partial files in JFrog Artifactory while upload is in progress?