409 conflict in the snapshot release handling policy during artifact deploy

ferahgo picture ferahgo · Jul 17, 2017 · Viewed 17.3k times · Source

We have a set of files that we would like to deploy to artifactory, test results specifically. Files which match the following pattern seem to consistently produce a 409 rejected the resolution of an artifact due to conflict in the snapshot release handling policy. The file follows the format abcxyz-test-results.json. We have other result files that are just test-results.json that upload just fine. It is worth noting that all other artifacts upload successfully until the 409 is encountered.

Our repository uses the maven-2-default repository layout. The include regex is set to **/* and we do not define any exclusion. My next step is to increase the verbosity of the logging that Artifactory produces when we encounter this error but I am not sure if that will be fruitful.

I am at a loss as to what about the snapshot handling policy we are violating with this file. Any ideas about what debugging steps I can take, or what the actual conflict might be would be greatly appreciated.

Answer

Yuri G. picture Yuri G. · Jul 18, 2017

You are trying to deploy a snapshot artifact to releases repository. You need to configure the repository to handle snapshot artifacts. See the attached image enter image description here