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.
Community moderators have prevented the ability to post new answers.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same problem!
Can't find any solution!
Please help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.