On Fri, Sep 13, 2024 at 10:28 PM Anna Manukyan <[email protected]> wrote:

> I have tried to run simple `mvn deploy` and the command released and
> uploaded to Artifactory 1.23-SNAPSHOT release. So I assume that this means
> that credentials to Artifactory and uploading mechanism works well. But
> then why the release itself doesn't uploaded to Artifactory?
>

Delete the "distributionManagement" section from your pom.xml. For
historical reasons, the name of the repos for deploying is
maven.jenkins-ci.org, to which you associated the credentials in your
settings.xml, so defining a "repo.jenkins-ci.org" to deploy to will mean
you're unauthenticated. Since the pom.xml doesn't also define
"snapshotRepository", that's inherited, and has the correct ID.

Relevant documentation:
https://www.jenkins.io/doc/developer/publishing/releasing-manually/#artifactory-credentials-for-maven
see note (1) in the first XML snippet.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAMo7Pt%2BLfwfxKqFR2VfjNcEx3GmGDwK-cUDo-mcmrZhy9yGfZg%40mail.gmail.com.

Reply via email to