Quantcast

Hudson m2 Release Plugin prompting for password on console

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Hudson m2 Release Plugin prompting for password on console

Adam Krieg

I’m trying to use the m2Release plugin.  I’m specifying the username and password in the Perform Maven Release form.  When I schedule the release, I see Hudson prompting the console for the build user’s (the account that Hudson is running from).   Obviously this defeats the purpose of running this through Hudson. 

 

 I’ve tried specifying in the release plugin:

<mavenExecutorId>forked-path</mavenExecutorId>

 

but to no avail.  Has anyone else run into this issue?  I’m running Maven 2.2.1 with Subversion 1.6.12.

 

 

Thanks,

Adam



Disclaimer: http://pragmatrading.com/disclaimer.html
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Abwesenheitsnotiz: Hudson m2 Release Plugin prompting for password on console

UlrikeA
This post has NOT been accepted by the mailing list yet.
Abwesenheitsnotiz: Hudson m2 Release Plugin prompting for password on console

I am currently out of the office, returning on August 16th 2010.
Please be aware that your email will not be read.

In urgent cases please contact e-Platform Support -- [hidden email]

Best regards

Ulrike Adrion
Java Development Support -- TTTJ2
AXA Tech. Services AG Switzerland
CH-8401 Winterthur
Tel:  +41 52 261 78 73

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hudson m2 Release Plugin prompting for password on console

Christian Sl
In reply to this post by Adam Krieg
hi,

> I'm trying to use the m2Release plugin.  I'm specifying the username and
> password in the Perform Maven Release form.  When I schedule the release, I
> see Hudson prompting the console for the build user's (the account that
> Hudson is running from).   Obviously this defeats the purpose of running this
> through Hudson.
>
>  I've tried specifying in the release plugin:
> <mavenExecutorId>forked-path</mavenExecutorId>

just guessing, but you could try to checkout once via the svn command line client on the machine (and the hudson user) where the job is running to get the credentials stored in advance.

kind regards, Christian
--
Sicherer, schneller und einfacher. Die aktuellen Internet-Browser -
jetzt kostenlos herunterladen! http://portal.gmx.net/de/go/atbrowser

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Re: Hudson m2 Release Plugin prompting for password on console

Pankaj Agarwal-3
You can enter the credentials that you want to use with this path using below URL.  Update the base path as in your environment.

http://<base path to hudson>/scm/SubversionSCM/enterCredential

Thanks,

Pankaj



-----Original Message-----
From: Christian Sl [mailto:[hidden email]]
Sent: Friday, August 06, 2010 4:21 PM
To: [hidden email]
Subject: Re: Hudson m2 Release Plugin prompting for password on console

hi,

> I'm trying to use the m2Release plugin.  I'm specifying the username and
> password in the Perform Maven Release form.  When I schedule the release, I
> see Hudson prompting the console for the build user's (the account that
> Hudson is running from).   Obviously this defeats the purpose of running this
> through Hudson.
>
>  I've tried specifying in the release plugin:
> <mavenExecutorId>forked-path</mavenExecutorId>

just guessing, but you could try to checkout once via the svn command line client on the machine (and the hudson user) where the job is running to get the credentials stored in advance.

kind regards, Christian
--
Sicherer, schneller und einfacher. Die aktuellen Internet-Browser -
jetzt kostenlos herunterladen! http://portal.gmx.net/de/go/atbrowser

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: RE: Re: Hudson m2 Release Plugin prompting for password on console

Christian Sl
hi,

> You can enter the credentials that you want to use with this path using
> below URL.  Update the base path as in your environment.
>
> http://<base path to hudson>/scm/SubversionSCM/enterCredential

Yes, i did this too when i started using Hudson.
Despite of that, the m2 release plugin couldn't commit the changes in Subversion. IIRC, as this was some months ago, at least one manual checkout and/or checkin was necessary.

kind regards, Christian
--
GMX.at - Österreichs FreeMail-Dienst mit über 2 Mio Mitgliedern
E-Mail, SMS & mehr! Kostenlos: http://portal.gmx.net/de/go/atfreemail

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Hudson m2 Release Plugin prompting for password on console

Nord, James
In reply to this post by Adam Krieg

What access method are you using for Subversion (svn+ssh or svn over https etc)?

 

Can you send a log of the build output?

 

/James

 

From: Adam Krieg [mailto:[hidden email]]
Sent: 07 August 2010 00:11
To: [hidden email]
Subject: Hudson m2 Release Plugin prompting for password on console

 

I’m trying to use the m2Release plugin.  I’m specifying the username and password in the Perform Maven Release form.  When I schedule the release, I see Hudson prompting the console for the build user’s (the account that Hudson is running from).   Obviously this defeats the purpose of running this through Hudson. 

 

 I’ve tried specifying in the release plugin:

<mavenExecutorId>forked-path</mavenExecutorId>

 

but to no avail.  Has anyone else run into this issue?  I’m running Maven 2.2.1 with Subversion 1.6.12.

 

 

Thanks,

Adam

 


Disclaimer: http://pragmatrading.com/disclaimer.html




**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the [hidden email] and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Hudson m2 Release Plugin prompting for password on console

Adam Krieg

I’m using svn+ssh.  I’m happy to use the system user (by not specifying username and password in the release form), I just don’t want to have Hudson prompt for the password in the console.  This is the output.

>>>>>>               

 Started by user myUserName

Reverting svn+ssh://svn.acme.com/acme/src/svn/trunk/MyMavenProj

Updating svn+ssh://svn.acme.com/acme/src/svn/trunk/MyMavenProj

At revision 46563

Parsing POMs

[MyMavenProj] $ java -cp /home/build/.hudson/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.369.jar:/home/build/apache-maven-2.2.1/boot/classworlds-1.1.jar hudson.maven.agent.Main /home/build/apache-maven-2.2.1 /home/build/.hudson/war/WEB-INF/lib/remoting-1.369.jar /home/build/.hudson/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.369.jar 44758 /home/build/.hudson/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar

<===[HUDSON REMOTING CAPACITY]===>channel started

Executing Maven:  -B -f /home/build/.hudson/jobs/MyMavenProj/workspace/MyMavenProj/pom.xml -s /home/build/.hudson/jobs/MyMavenProj/workspace/MyMavenProj/settings.xml -DscmCommentPrefix=[maven-release-plugin](myUserName) -Dproject.rel.com.acme:MyMavenProj=1.3 -Dproject.dev.com.acme:MyMavenProj=1.4-SNAPSHOT -Dresume=false release:prepare release:perform -Darguments=-s settings.xml

[INFO] Scanning for projects...

[INFO] ------------------------------------------------------------------------

[INFO] Building Global Pom File

[INFO]    task-segment: [release:prepare, release:perform] (aggregator-style)

[INFO] ------------------------------------------------------------------------

[HUDSON] Collecting dependencies info

[INFO] [release:prepare {execution: default-cli}]

[INFO] Verifying that there are no local modifications...

[INFO] Executing: /bin/sh -c cd /home/build/.hudson/jobs/MyMavenProj/workspace/MyMavenProj && svn --non-interactive status

[INFO] Working directory: /home/build/.hudson/jobs/MyMavenProj/workspace/MyMavenProj

[INFO] Checking dependencies and plugins for snapshots ...

[INFO] Transforming 'Global Pom File'...

[INFO] Not generating release POMs

[INFO] Executing goals 'clean verify'...

[INFO] [INFO] Scanning for projects...

[INFO] [INFO] ------------------------------------------------------------------------

[INFO] [INFO] Building Global Pom File

[INFO] [INFO]    task-segment: [clean, verify]

[INFO] [INFO] ------------------------------------------------------------------------

[INFO] [INFO] [clean:clean {execution: default-clean}]

[INFO] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]

[INFO] [INFO] ------------------------------------------------------------------------

[INFO] [INFO] BUILD SUCCESSFUL

[INFO] [INFO] ------------------------------------------------------------------------

[INFO] [INFO] Total time: 1 second

[INFO] [INFO] Finished at: Mon Aug 09 09:43:31 EDT 2010

[INFO] [INFO] Final Memory: 21M/297M

[INFO] [INFO] ------------------------------------------------------------------------

[INFO] Checking in modified POMs...

[INFO] Executing: /bin/sh -c cd /home/build/.hudson/jobs/MyMavenProj/workspace/MyMavenProj && svn --non-interactive commit --file /tmp/maven-scm-191476498.commit --targets /tmp/maven-scm-8832574193674865441-targets

[INFO] Working directory: /home/build/.hudson/jobs/MyMavenProj/workspace/MyMavenProj

[INFO] Tagging release with the label MyMavenProj-1.3...

[INFO] Executing: /bin/sh -c cd /home/build/.hudson/jobs/MyMavenProj/workspace/MyMavenProj && svn --non-interactive copy --file /tmp/maven-scm-1468195262.commit --revision 46564 svn+ssh://svn.acme.com/acme/src/svn/trunk/MyMavenProj svn+ssh://svn.acme.com/acme/src/svn/tags/MyMavenProj-1.3

[INFO] Working directory: /home/build/.hudson/jobs/MyMavenProj/workspace/MyMavenProj

[INFO] Transforming 'Global Pom File'...

[INFO] Not removing release POMs

[INFO] Checking in modified POMs...

[INFO] Executing: /bin/sh -c cd /home/build/.hudson/jobs/MyMavenProj/workspace/MyMavenProj && svn --non-interactive commit --file /tmp/maven-scm-143718364.commit --targets /tmp/maven-scm-7472430438711742998-targets

[INFO] Working directory: /home/build/.hudson/jobs/MyMavenProj/workspace/MyMavenProj

[INFO] Release preparation complete.

[INFO] [release:perform {execution: default-cli}]

[INFO] Checking out the project to perform the release ...

[INFO] Executing: /bin/sh -c cd /home/build/.hudson/jobs/MyMavenProj/workspace/MyMavenProj/target && svn --non-interactive checkout svn+ssh://svn.acme.com/acme/src/svn/tags/MyMavenProj-1.3 /home/build/.hudson/jobs/MyMavenProj/workspace/MyMavenProj/target/checkout

[INFO] Working directory: /home/build/.hudson/jobs/MyMavenProj/workspace/MyMavenProj/target

[INFO] Executing goals 'deploy'...

[INFO] [INFO] Scanning for projects...

[INFO] [INFO] ------------------------------------------------------------------------

[INFO] [INFO] Building Global Pom File

[INFO] [INFO]    task-segment: [deploy]

[INFO] [INFO] ------------------------------------------------------------------------

[INFO] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]

[INFO] [INFO] Preparing source:jar

[INFO] [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.

[INFO] [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.

[INFO] [INFO] No goals needed for project - skipping

[INFO] [INFO] [source:jar {execution: default}]

[INFO] [INFO] Preparing source:test-jar

[INFO] [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.

[INFO] [WARNING] Removing: test-jar from forked lifecycle, to prevent recursive invocation.

[INFO] [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.

[INFO] [INFO] No goals needed for project - skipping

[INFO] [INFO] [source:test-jar {execution: default}]

[INFO] [INFO] Preparing source:jar

[INFO] [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.

[INFO] [WARNING] Removing: test-jar from forked lifecycle, to prevent recursive invocation.

[INFO] [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.

[INFO] [INFO] No goals needed for project - skipping

[INFO] [INFO] [source:jar {execution: attach-sources}]

[INFO] [WARNING] DEPRECATED [aggregate]: As of version 2.5, use the goals <code>javadoc:aggregate</code> and

[INFO] <code>javadoc:test-aggregate</code> instead.

[INFO] [INFO] [javadoc:jar {execution: attach-javadocs}]

[INFO] [INFO] Not executing Javadoc as the project is not a Java classpath-capable package

[INFO] [INFO] [install:install {execution: default-install}]

[INFO] [INFO] Installing /home/build/.hudson/jobs/MyMavenProj/workspace/MyMavenProj/target/checkout/pom.xml to /home/build/.m2/repository/com/acme/MyMavenProj/1.3/MyMavenProj-1.3.pom

[INFO] [INFO] [deploy:deploy {execution: default-deploy}]

[INFO] Uploading: http://artifactory.acme.com/libs-releases-local/com/acme/MyMavenProj/1.3/MyMavenProj-1.3.pom

[INFO] 14K uploaded  (MyMavenProj-1.3.pom)

[INFO] [INFO] Retrieving previous metadata from releases

[INFO] [INFO] Uploading repository metadata for: 'artifact com.acme:MyMavenProj'

[INFO] [INFO] ------------------------------------------------------------------------

[INFO] [INFO] BUILD SUCCESSFUL

[INFO] [INFO] ------------------------------------------------------------------------

[INFO] [INFO] Total time: 5 seconds

[INFO] [INFO] Finished at: Mon Aug 09 09:44:13 EDT 2010

[INFO] [INFO] Final Memory: 39M/355M

[INFO] [INFO] ------------------------------------------------------------------------

[INFO] Cleaning up after release...

[HUDSON] Archiving /home/build/.hudson/jobs/MyMavenProj/workspace/MyMavenProj/pom.xml to /home/build/.hudson/jobs/MyMavenProj/modules/com.acme$MyMavenProj/builds/2010-08-09_09-43-24/archive/com.acme/MyMavenProj/1.3-SNAPSHOT/pom.xml

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESSFUL

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 48 seconds

[INFO] Finished at: Mon Aug 09 09:44:14 EDT 2010

[INFO] Final Memory: 25M/359M

 

While this is going on, I get prompted for the build system’s password 6 times.

[hidden email]'s password:

build@svn. acme.com's password:

build@svn. acme.com's password:

build@svn. acme.com's password:

build@svn. acme.com's password:

build@svn. acme.com's password:

 

 

From: Nord, James [mailto:[hidden email]]
Sent: Monday, August 09, 2010 7:53 AM
To: [hidden email]
Subject: RE: Hudson m2 Release Plugin prompting for password on console

 

What access method are you using for Subversion (svn+ssh or svn over https etc)?

 

Can you send a log of the build output?

 

/James

 

From: Adam Krieg [mailto:[hidden email]]
Sent: 07 August 2010 00:11
To: [hidden email]
Subject: Hudson m2 Release Plugin prompting for password on console

 

I’m trying to use the m2Release plugin.  I’m specifying the username and password in the Perform Maven Release form.  When I schedule the release, I see Hudson prompting the console for the build user’s (the account that Hudson is running from).   Obviously this defeats the purpose of running this through Hudson. 

 

 I’ve tried specifying in the release plugin:

<mavenExecutorId>forked-path</mavenExecutorId>

 

but to no avail.  Has anyone else run into this issue?  I’m running Maven 2.2.1 with Subversion 1.6.12.

 

 

Thanks,

Adam

 


Disclaimer: http://pragmatrading.com/disclaimer.html

 



**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the [hidden email] and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************



Disclaimer: http://pragmatrading.com/disclaimer.html
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Hudson m2 Release Plugin prompting for password on console

Nord, James

There should be two more arguments passed on the command line but they seem to be missing.

-Dusername= & -Dpassword=

 

For some reason these are not getting set which is why ssh is prompting for a password.

 

Did you specify the username/password in the release page?

 

/James

 

From: Adam Krieg [mailto:[hidden email]]
Sent: 09 August 2010 15:06
To: [hidden email]
Subject: RE: Hudson m2 Release Plugin prompting for password on console

 

I’m using svn+ssh.  I’m happy to use the system user (by not specifying username and password in the release form), I just don’t want to have Hudson prompt for the password in the console.  This is the output.

>>>>>>               

 Started by user myUserName

Reverting svn+ssh://svn.acme.com/acme/src/svn/trunk/MyMavenProj

Updating svn+ssh://svn.acme.com/acme/src/svn/trunk/MyMavenProj

At revision 46563

Parsing POMs

[MyMavenProj] $ java -cp /home/build/.hudson/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.369.jar:/home/build/apache-maven-2.2.1/boot/classworlds-1.1.jar hudson.maven.agent.Main /home/build/apache-maven-2.2.1 /home/build/.hudson/war/WEB-INF/lib/remoting-1.369.jar /home/build/.hudson/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.369.jar 44758 /home/build/.hudson/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar

<===[HUDSON REMOTING CAPACITY]===>channel started

Executing Maven:  -B -f /home/build/.hudson/jobs/MyMavenProj/workspace/MyMavenProj/pom.xml -s /home/build/.hudson/jobs/MyMavenProj/workspace/MyMavenProj/settings.xml -DscmCommentPrefix=[maven-release-plugin](myUserName) -Dproject.rel.com.acme:MyMavenProj=1.3 -Dproject.dev.com.acme:MyMavenProj=1.4-SNAPSHOT -Dresume=false release:prepare release:perform -Darguments=-s settings.xml

[INFO] Scanning for projects...




**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the [hidden email] and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hudson m2 Release Plugin prompting for password on console

Ash Lux
I usually setup my Hudson user so that it can SSH without a password by using authorized_keys. Can you use authorized_keys? See http://www.eng.cam.ac.uk/help/jpmg/ssh/authorized_keys_howto.html on how to set this up.

Ash Lux

On Tue, Aug 17, 2010 at 10:44, Nord, James <[hidden email]> wrote:

There should be two more arguments passed on the command line but they seem to be missing.

-Dusername= & -Dpassword=

 

For some reason these are not getting set which is why ssh is prompting for a password.

 

Did you specify the username/password in the release page?

 

/James

 

From: Adam Krieg [mailto:[hidden email]]
Sent: 09 August 2010 15:06


To: [hidden email]
Subject: RE: Hudson m2 Release Plugin prompting for password on console

 

I’m using svn+ssh.  I’m happy to use the system user (by not specifying username and password in the release form), I just don’t want to have Hudson prompt for the password in the console.  This is the output.

>>>>>>               

 Started by user myUserName

Reverting svn+ssh://svn.acme.com/acme/src/svn/trunk/MyMavenProj

Updating svn+ssh://svn.acme.com/acme/src/svn/trunk/MyMavenProj

At revision 46563

Parsing POMs

[MyMavenProj] $ java -cp /home/build/.hudson/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.369.jar:/home/build/apache-maven-2.2.1/boot/classworlds-1.1.jar hudson.maven.agent.Main /home/build/apache-maven-2.2.1 /home/build/.hudson/war/WEB-INF/lib/remoting-1.369.jar /home/build/.hudson/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.369.jar 44758 /home/build/.hudson/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar

<===[HUDSON REMOTING CAPACITY]===>channel started

Executing Maven:  -B -f /home/build/.hudson/jobs/MyMavenProj/workspace/MyMavenProj/pom.xml -s /home/build/.hudson/jobs/MyMavenProj/workspace/MyMavenProj/settings.xml -DscmCommentPrefix=[maven-release-plugin](myUserName) -Dproject.rel.com.acme:MyMavenProj=1.3 -Dproject.dev.com.acme:MyMavenProj=1.4-SNAPSHOT -Dresume=false release:prepare release:perform -Darguments=-s settings.xml

[INFO] Scanning for projects...




**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the [hidden email] and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************

Loading...