Hello,
I had the same problem not long ago. The solution was to omit username and
password (only call “mvn release:prepare release:perform”) and instead set
username and password in the maven ~/.m2/settings.xml as described in
https://wiki.jenkins-ci.org/display/JENKINS/Hosting+Plugins#HostingPlugins-Releasingtojenkinsci.org
by adding:
<servers>
<server>
<id>maven.jenkins-ci.org</id> <!-- For parent 1.397 or newer; before this
use id java.net-m2-repository -->
<username>yourUserName</username>
<password>yourPassword</password>
</server>
</servers>
Best Regards
Joachim
---------------------------------------------------
Joachim Kuhnert
fon: +49 30 394 09 683 39
PikeTec GmbH, Waldenserstr. 2-4, 10551 Berlin
Management: Eckard Bringmann, Andreas Krämer, Jens Lüdemann
Location of the company: Berlin (Germany)
Trade register: Amtsgericht Berlin HRB 105491 B
Website: www.piketec.com
Von: [email protected] [mailto:[email protected]] Im
Auftrag von Lev Mishin
Gesendet: Dienstag, 3. November 2015 21:54
An: Jenkins Developers
Betreff: Re: New plugin Build-name-updater
In log I see only
Uploading:
http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jenkins-ci/plugins/build-name-setter/1.5/build-name-setter-1.5.hpi
Uploaded:
http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jenkins-ci/plugins/build-name-setter/1.5/build-name-setter-1.5.hpi
(23 KB at 6.8 KB/sec)
Uploading:
http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jenkins-ci/plugins/build-name-setter/1.5/build-name-setter-1.5.pom
Uploaded:
http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jenkins-ci/plugins/build-name-setter/1.5/build-name-setter-1.5.pom
(3 KB at 1.1 KB/sec)
Downloading:
http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jenkins-ci/plugins/build-name-setter/maven-metadata.xml
Downloaded:
http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jenkins-ci/plugins/build-name-setter/maven-metadata.xml
(452 B at 0.3 KB/sec)
Uploading:
http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jenkins-ci/plugins/build-name-setter/maven-metadata.xml
Uploaded:
http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jenkins-ci/plugins/build-name-setter/maven-metadata.xml
(427 B at 0.2 KB/sec)
Uploading:
http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jenkins-ci/plugins/build-name-setter/1.5/build-name-setter-1.5.jar
Uploaded:
http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jenkins-ci/plugins/build-name-setter/1.5/build-name-setter-1.5.jar
(21 KB at 8.5 KB/sec)
Do I have to upload some more? How could I do that?
On Tuesday, November 3, 2015 at 11:44:11 PM UTC+3, Kanstantsin Shautsou wrote:
Please check that you also uploaded sources and javadocs (action that
maven-release-plugin do).
On Tuesday, November 3, 2015 at 11:22:24 PM UTC+3, Lev Mishin wrote:
Hmm, quite strange, I've just run 'deploy' target from 'lifecycle' in Idea and
plugin was successfully released. Will it appear
here<https://github.com/jenkinsci/build-name-setter-plugin/releases>?
On Tuesday, November 3, 2015 at 11:18:43 PM UTC+3, Lev Mishin wrote:
Hi again
I have read all the article but I unable to deploy a new version. I try to run
mvn release:prepare release:perform -Dusername=... -Dpassword=... with
login/pass, but the error occurs:
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy (default-deploy) on
project build-name-setter: Failed to deploy artifacts: Could not transfer
artifact org.jenkins-ci.plugins:build-name-setter:hpi:1.5 from/to
maven.jenkins-ci.org<http://maven.jenkins-ci.org>
(http://maven.jenkins-ci.org:8081/content/repositories/releases): Failed to
transfer file:
http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jenkins-ci/plugins/build-name-setter/1.5/build-name-setter-1.5.hpi.
Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]
I guess it is connected with:
However if your plugin is hosted on GitHub and you have different username
and/or password for GitHub and jenkins-ci.org<http://jenkins-ci.org> use of the
command-line arguments for username/password will result in errors.
Am I right?
I have set up ssh-agent using the following instructions:
Generate key<https://help.github.com/articles/generating-ssh-keys/>
Setup ssh
agent<https://developer.github.com/guides/using-ssh-agent-forwarding/#setting-up-ssh-agent-forwarding>
But maven still fails with the error above
On Friday, October 9, 2015 at 7:24:55 PM UTC+3, Lev Mishin wrote:
* Github link:
https://github.com/Le0Michine/Jenkins-Build-name-updater-plugin/tree/master
* Repo name: "Build-name-updater-plugin"
* User name the same as in the URL
* jenkins-ci.org<http://jenkins-ci.org> username: Le0;
* Description: my plugin updates a build name during the build process, it
was necessary because custom build name could tell some useful information.
Sometimes we just unable to set custom build name before build or in pre-build
steps because we just don't know that so using my plugin you can set the build
name in a separate build step, you can use a file in the build workspace or
environment variable or both of them as the build name source.
--
Kind regards,
Lev Mishin
--
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]<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/454f305c-7936-4a1d-8547-9136dcf7c0e8%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-dev/454f305c-7936-4a1d-8547-9136dcf7c0e8%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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/601BB6FDC49648489C8BE0671860E03A117421%40VS2.piketec.local.
For more options, visit https://groups.google.com/d/optout.