Cannot upload plugin to release repository, while shapshot works

52 views
Skip to first unread message

Tomasz Jurkiewicz

unread,
Jun 27, 2017, 10:46:11 AM6/27/17
to Jenkins Developers
Hi,

I get 401/Unauthorised upon uploading to release repository:

tomekmbpro:incapptic-connect-uploader-plugin tomek$ /Applications/IntelliJ\ IDEA.app/Contents/plugins/maven/lib/maven3/bin/mvn release:perform

..
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project incapptic-connect-uploader: Failed to deploy artifacts: Could not transfer artifact com.incapptic.plugins:incapptic-connect-uploader:hpi:1.5 from/to maven.jenkins-ci.org (https://repo.jenkins-ci.org/releases/): Access denied to: https://repo.jenkins-ci.org/releases/com/incapptic/plugins/incapptic-connect-uploader/1.5/incapptic-connect-uploader-1.5.hpi, ReasonPhrase: Forbidden. -> [Help 1]


uploading to snapshot with mvn deploy works. I have the ~/.m2/settings.xml filled with username & encrypted password revealed here: https://repo.jenkins-ci.org/webapp

Here are the snapshot versions:

I assume that my password is ok, because without the settings.xml file, I cannot even do snapshot uploads.

My plugin version is 2.11:


<parent>
 
<groupId>org.jenkins-ci.plugins</groupId>
 
<artifactId>plugin</artifactId>
 
<version>2.11</version>
 
<relativePath />
</parent>




Cheers,
Tomek

Stephen Connolly

unread,
Jun 27, 2017, 11:01:42 AM6/27/17
to jenkin...@googlegroups.com
Are you listed in the plugin repository permissions? if not file a PR against https://github.com/jenkins-infra/repository-permissions-updater/

--
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 jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/ac07bd62-90ce-45cd-b15f-b6479cff081b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Baptiste Mathus

unread,
Jun 29, 2017, 3:51:37 AM6/29/17
to Jenkins Developers
Are you logging into Jenkins infra with the "incapptic_connect" user? If so, then it should have worked. If not, then that is expected and you need to do as Stephen says in https://github.com/jenkins-infra/repository-permissions-updater/blob/master/permissions/plugin-incapptic-connect-uploader.yml

Reply all
Reply to author
Forward
0 new messages