How to read the logged in user's password in Jenkins as plain text?

425 views
Skip to first unread message

Mantoo Ankalakoti

unread,
Mar 27, 2015, 7:38:17 PM3/27/15
to jenkins...@googlegroups.com
Hi,

I want to read the logged in users password in my jenkins shell script.
I am using the Jenkins own database for authentication.
Please help me if there is any way to accomplish this?


Thanks and Regards
Mahantesh.C.A

Baptiste Mathus

unread,
Mar 28, 2015, 9:06:08 AM3/28/15
to jenkins...@googlegroups.com
I don't think there's a way to do this. Fortunately.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b83fe41e-f5b4-4b26-9c5d-6f5ca086901b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

Brantone

unread,
Mar 30, 2015, 3:37:52 AM3/30/15
to jenkins...@googlegroups.com
That's quite a security issue and generally not recommended.
As a compromise, if it's required as part of a job, could use the "Password Parameter" option and have the user re-enter it.

Matthew...@diamond.ac.uk

unread,
Mar 30, 2015, 5:10:29 AM3/30/15
to jenkins...@googlegroups.com

Mantoo (original poster), if you tell us what you are trying to achieve, there might be a better way to do it that does not need the user’s password.

 

--

 

-- 

This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
 

Mantoo Ankalakoti

unread,
Mar 30, 2015, 5:13:14 AM3/30/15
to jenkins...@googlegroups.com

Hi,

In my Jenkins job I have created users with Jenkins own user database. The passwords and user names are same as the svn credentials..... So in my job I am trying to connect to svn using the logged in users credentials..... So I need this scenario......

Thanks and Regards,
Mahantesh.C.A

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/K80CeTs4_6w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6836E1DC2DDC174C9D64B7860E5AF5FC9EDB5D2E%40EXCHMBX03.fed.cclrc.ac.uk.

Matthew...@diamond.ac.uk

unread,
Mar 30, 2015, 6:12:59 AM3/30/15
to jenkins...@googlegroups.com

 

 

From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of Mantoo Ankalakoti
Sent: 30 March 2015 10:13
To: jenkins...@googlegroups.com
Subject: RE: How to read the logged in user's password in Jenkins as plain text?

 

Hi,

In my Jenkins job I have created users with Jenkins own user database. The passwords and user names are same as the svn credentials..... So in my job I am trying to connect to svn using the logged in users credentials..... So I need this scenario......

Thanks and Regards,
Mahantesh.C.A

 

-- 

Mantoo Ankalakoti

unread,
Aug 20, 2015, 4:16:02 PM8/20/15
to jenkins...@googlegroups.com
Hi,

How r u?
O am getting an error in groovy script in my Jenkins.
FATAL: Failed to install https://dl.bintray.com/groovy/maven/groovy-binary-2.4.3.zip to E:\Jenkins\tools\Groovy\Groovy_1.7.6
hudson.util.IOException2: Failed to install https://dl.bintray.com/groovy/maven/groovy-binary-2.4.3.zip to E:\Jenkins\tools\Groovy\Groovy_1.7.6
	at hudson.FilePath.installIfNecessaryFrom(FilePath.java:728)
	at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:72)
	at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61)
	at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107)
	at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:203)
	at hudson.plugins.groovy.GroovyInstallation.forNode(GroovyInstallation.java:70)
	at hudson.plugins.groovy.Groovy.buildCommandLine(Groovy.java:284)
	at hudson.plugins.groovy.Groovy.perform(Groovy.java:79)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
	at hudson.model.Build$BuildExecution.build(Build.java:199)
	at hudson.model.Build$BuildExecution.doRun(Build.java:160)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)
	at hudson.model.Run.execute(Run.java:1516)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:236)
Caused by: javax.net.ssl.SSLKeyException: FATAL Alert:BAD_CERTIFICATE - A corrupt or unuseable certificate was received.
	at com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireException(Unknown Source)
	at com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireAlertSent(Unknown Source)
	at com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown Source)
	at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessages(Unknown Source)
	at com.certicom.tls.record.MessageInterpreter.interpretContent(Unknown Source)
	at com.certicom.tls.record.MessageInterpreter.decryptMessage(Unknown Source)
	at com.certicom.tls.record.ReadHandler.processRecord(Unknown Source)
	at com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
	at com.certicom.tls.record.ReadHandler.readUntilHandshakeComplete(Unknown Source)
	at com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHandshake(Unknown Source)
	at com.certicom.tls.record.WriteHandler.write(Unknown Source)
	at com.certicom.io.OutputSSLIOStreamWrapper.write(Unknown Source)
	at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
	at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
	at java.io.FilterOutputStream.flush(FilterOutputStream.java:123)
	at weblogic.net.http.HttpURLConnection.writeRequests(HttpURLConnection.java:191)
	at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:411)
	at weblogic.net.http.SOAPHttpsURLConnection.getInputStream(SOAPHttpsURLConnection.java:37)
	at org.jvnet.robust_http_client.RetryableHttpStream.getStream(RetryableHttpStream.java:98)
	at org.jvnet.robust_http_client.RetryableHttpStream.<init>(RetryableHttpStream.java:91)
	at org.jvnet.robust_http_client.RetryableHttpStream.<init>(RetryableHttpStream.java:74)
	at hudson.ProxyConfiguration.getInputStream(ProxyConfiguration.java:232)
	at hudson.FilePath.installIfNecessaryFrom(FilePath.java:714)
	... 16 more


Can you please help me.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/K80CeTs4_6w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages