Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

atlas-mvn deploy uploads twice to artifactory

Jos Vermeijlen February 2, 2014

To prevent artifactory artifacts from being overwritten, we revoked all delete permissions for all developers, but when deploying an atlassian (stash) plugin, we get:

> atlas-mvn -e deploy
...
[INFO] [deploy:deploy]
Uploading: http://boa-arm.fake.com:8081/artifactory/fake-stash-local/com/fake/update-repo/9.1.2/update-repo-9.1.2.jar
91K uploaded  (update-repo-9.1.2.jar)
[INFO] Retrieving previous metadata from nlvdhm732
[INFO] Uploading repository metadata for: 'artifact com.fake:update-repo'
[INFO] Uploading project information for update-repo 9.1.2
Uploading: http://boa-arm.fake.com:8081/artifactory/fake-stash-local/com/fake/update-repo/9.1.2/update-repo-9.1.2.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: Authorization failed: Access denied to: http://boa-arm.fake.com:8081/artifactory/fake-stash-local/com/fake/update-repo/9.1.2/update-repo-9.1.2.jar

So it seems `atlas-mvn deploy` tries to do artifactory's work and uploads the artifact twice.

Is there a way to either tell atlassian just to upload and leave the rest to artifactory or tell artifactory it is dealing with atlassian and should ignore the second upload?

Thanks in advance,

Jos Vermeijlen.

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
cofarrell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 3, 2014

Hi Jos/Stephan,

It's a known bug, you might want to take a look at the following:

https://ecosystem.atlassian.net/browse/AMPS-1042

The suggested workaround at the moment is to downgrade your version of amps. Hopefully we can get a fix out fairly shortly.

Cheers,

Charles

0 votes
Jos Vermeijlen February 3, 2014

Hi Charles,

Thanks for the tip. I'll try the workaround and keep an eye on atlassian answers for the fix.

In the meantime we'll tell our developers not to panic when they see a 'build error' when deploying.

Kind regards,

Jos.

0 votes
Stephan Heller February 2, 2014

I have the same problem!

Can't find any solution!

Please help!

TAGS
AUG Leaders

Atlassian Community Events