Re: rsync failed: ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory

2017-08-06 Thread Mark Waite
I wonder if rsync has a similar behavior to command line git.

Command line git prompts for credentials if there is a controlling terminal
attached to the process.

You could check that by running the rsync command prefixed with the setsid
command so that the controlling terminal is disconnected.

Mark Waite

On Sun, Aug 6, 2017, 1:39 PM Shiran  wrote:

> Hi,
>
>- Yes- I'm trying to copy files from icsl7024 to cg-sv-h118.
>- I am not, explicitly, providing credentials between cg-sv-h118 and
>icsl7024. What is happening is that when the build starts, I am
>already connected to cg-sv-h118 (with the correct username and password),
>and then I'm just doing rsync between the machines.
>- Outside of Jenkins I am able to connect from cg-sv-h118 to icsl7024
>(they both use the same username...)
>- I checked the permission of  ~/.ssh and ~/.ssh/authorized_keys and
>they are as expected (700 and 644), on both machines.
>
>
> On Sunday, August 6, 2017 at 4:51:09 PM UTC+3, mpapo - Michael Pailloncy
> wrote:
>
>> Ok, if I refer to logs above, you want to copy files from *icsl7024* machine
>> to *cg-sv-h118* workspace. Right ?
>> My question was not very clear, but I would like to know how do you
>> provide credentials between *cg-sv-h118 *and *i**csl7024* machines ?
>>
>> Can you please also confirm that outside of Jenkins, you are able to
>> connect from *cg-sv-h118 *to *icsl7024 *through SSH (without password) ?
>> Can you also check if */home/${USER}/.ssh/* directory and
>> */home/${USER}/.ssh/authorized_keys* file have the correct file
>> permissions (respectively 700 and 644) on both machines ?
>>
>> Michaël
>>
>> 2017-08-06 13:31 GMT+02:00 Shiran :
>>
> Hi,
>>>
>>> I'm connecting to this node via ssh , and I have the host and
>>> credentials configured in the node's configuration in Jenkins.
>>> The same rsync command is working just fine when I'm doing it outside
>>> Jenkins.
>>>
>>>
>>> On Sunday, August 6, 2017 at 10:53:41 AM UTC+3, mpapo - Michael
>>> Pailloncy wrote:

 ssh is asking for the password or a passphrase if the key is invalid.
 Is-there a passphrase configured for this key ? Have you tried to connect
 directly using ssh from this machine to the target one ?
 BTW, how do you provide credentials ?

 2017-08-06 9:28 GMT+02:00 Shiran :

> Hi,
>
> I'm copying files from one machine to another (to *cg-sv-h118* in the
> log below) using rsync command.
> Important to say that this command is working as expected in other
> machines I use (all have the same setup)
> Can you help me understand the yellow errors below?
> Thanks!
>
> *Log:*
>
> *22:22:15* Building remotely on *cg-sv-h118* in workspace 
> /local/jenkins_ws/workspace/open_val*22:22:15* [open_val] $ /bin/bash 
> /tmp/hudson8936548899971970339.sh
> *22:22:15* Starting to rsync files from parent workspace: 
> icsl7024:/tmp/jenkins_ws/workspace/post_trigger*22:22:15* 
> *22:22:15* Use of this 
> system by unauthorized persons or   *22:22:15* in an unauthorized manner 
> is strictly prohibited*22:22:15* 
> *22:22:15* ssh_askpass: 
> exec(/usr/bin/ssh-askpass): No such file or directory*22:22:16* 
> ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or 
> directory*22:22:17* ssh_askpass: exec(/usr/bin/ssh-askpass): No such file 
> or directory*22:22:17* Permission denied 
> (gssapi-with-mic,publickey).*22:22:17* rsync: connection unexpectedly 
> closed (0 bytes received so far) [Receiver]*22:22:17* rsync error: 
> unexplained error (code 255) at io.c(226) [Receiver=3.1.1]
>
>
>
> --
> 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/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

 --
>>> 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/f21add86-7c1d-4e27-901c-75161cd4864c%40googlegroups.com
>>> 
>>> .
>>>
>>> For more options

Re: rsync failed: ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory

2017-08-06 Thread Shiran
Hi,

   - Yes- I'm trying to copy files from icsl7024 to cg-sv-h118.
   - I am not, explicitly, providing credentials between cg-sv-h118 and 
   icsl7024. What is happening is that when the build starts, I am 
   already connected to cg-sv-h118 (with the correct username and password), 
   and then I'm just doing rsync between the machines.
   - Outside of Jenkins I am able to connect from cg-sv-h118 to icsl7024 
   (they both use the same username...)
   - I checked the permission of  ~/.ssh and ~/.ssh/authorized_keys and 
   they are as expected (700 and 644), on both machines.
   

On Sunday, August 6, 2017 at 4:51:09 PM UTC+3, mpapo - Michael Pailloncy 
wrote:
>
> Ok, if I refer to logs above, you want to copy files from *icsl7024* machine 
> to *cg-sv-h118* workspace. Right ?
> My question was not very clear, but I would like to know how do you 
> provide credentials between *cg-sv-h118 *and *i**csl7024* machines ? 
>
> Can you please also confirm that outside of Jenkins, you are able to 
> connect from *cg-sv-h118 *to *icsl7024 *through SSH (without password) ?
> Can you also check if */home/${USER}/.ssh/* directory and 
> */home/${USER}/.ssh/authorized_keys* file have the correct file 
> permissions (respectively 700 and 644) on both machines ?
>
> Michaël
>
>
> 2017-08-06 13:31 GMT+02:00 Shiran >:
>
>> Hi,
>>
>> I'm connecting to this node via ssh , and I have the host and credentials 
>> configured in the node's configuration in Jenkins.
>> The same rsync command is working just fine when I'm doing it outside 
>> Jenkins.
>>
>>
>> On Sunday, August 6, 2017 at 10:53:41 AM UTC+3, mpapo - Michael Pailloncy 
>> wrote:
>>>
>>> ssh is asking for the password or a passphrase if the key is invalid. 
>>> Is-there a passphrase configured for this key ? Have you tried to connect 
>>> directly using ssh from this machine to the target one ?
>>> BTW, how do you provide credentials ?
>>>
>>> 2017-08-06 9:28 GMT+02:00 Shiran :
>>>
 Hi,

 I'm copying files from one machine to another (to *cg-sv-h118* in the 
 log below) using rsync command.
 Important to say that this command is working as expected in other 
 machines I use (all have the same setup)
 Can you help me understand the yellow errors below?
 Thanks!

 *Log:*

 *22:22:15* Building remotely on *cg-sv-h118* in workspace 
 /local/jenkins_ws/workspace/open_val*22:22:15* [open_val] $ /bin/bash 
 /tmp/hudson8936548899971970339.sh
 *22:22:15* Starting to rsync files from parent workspace: 
 icsl7024:/tmp/jenkins_ws/workspace/post_trigger*22:22:15* 
 *22:22:15* Use of this 
 system by unauthorized persons or   *22:22:15* in an unauthorized manner 
 is strictly prohibited*22:22:15* 
 *22:22:15* ssh_askpass: 
 exec(/usr/bin/ssh-askpass): No such file or directory*22:22:16* 
 ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or 
 directory*22:22:17* ssh_askpass: exec(/usr/bin/ssh-askpass): No such file 
 or directory*22:22:17* Permission denied 
 (gssapi-with-mic,publickey).*22:22:17* rsync: connection unexpectedly 
 closed (0 bytes received so far) [Receiver]*22:22:17* rsync error: 
 unexplained error (code 255) at io.c(226) [Receiver=3.1.1]



 -- 
 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/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com
  
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>>
>>> -- 
>> 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/f21add86-7c1d-4e27-901c-75161cd4864c%40googlegroups.com
>>  
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/cc5172d2-eb7d-4972-ba77-6b7f894fe6f8%40googlegro

Re: How to use "secret text" credential inside NodeJS app as part of a pipeline?

2017-08-06 Thread Idan Adar
Working now. The problem was with another property that was defined as 
username/password credential and not secret text credential.

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9afe041a-fcdc-4d3b-a3b5-6a8b5a62e61f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Pipelines defining steps and importing pipeline library library

2017-08-06 Thread Michael Pailloncy
In case of Shared Library classes definition, steps are not directly
callable (it's not the case for steps declared inside *vars* directory).

Can you can try something like :

*src/acme/jenkins/Utils.groovy*
package acme.jenkins

class Utils {
  static def getGradleBinPath(script, version) {
if (!version) {
throw new IllegalArgumentException('A Gradle version must be
provided')
}
script.tool(version).concat('/bin/gradle')
  }
}


*vars/runGradle.groovy*
import acme.jenkins.*

def call(body) {
def config = [:]

body.resolveStrategy = Closure.DELEGATE_FIRST
body.delegate = config
body()

sh "${Utils.getGradleBinPath(this, config.version)} ${config.cmd}"
}


See https://jenkins.io/doc/book/pipeline/shared-libraries/#accessing-steps
=> there is a similar example using Maven.

Moreover, you should also be interested by
https://issues.jenkins-ci.org/browse/JENKINS-44834 and
https://issues.jenkins-ci.org/browse/JENKINS-27393 :-)

Hopefully it helps.

Cheers


2017-08-02 15:29 GMT+02:00 Nicolae Vlădescu :

> Hello.
>
> I have the following issue with Jenkins 2.0
>
> My Jenkinsfile from repo X contains:
>
> @Library('acme-pipelines@dev')
>
> import acme.jenkins.*
>
> node {
> runGradle {
> version = '3.3'
> cmd = '--version'
> }
> }
>
>
>
> In repo Y (the pipeline library repo) i have `vars/runGradle.groovy`
> containing:
> import acme.jenkins.*
>
> def call(body) {
> def config = [:]
> def utils = new Utils()
>
> body.resolveStrategy = Closure.DELEGATE_FIRST
> body.delegate = config
> body()
>
> sh "${utils.getGradleBinPath(config.version)} ${config.cmd}"
> }
>
>
>
> Also in repo Y i have `src/acme/jenkins/Utils.groovy` containing:
> package acme.jenkins
>
> static String getGradleBinPath(String version = null) {
> if (!version) {
> throw new IllegalArgumentException('A Gradle version must be provided')
> }
> tool(version).concat('/bin/gradle')
> }
>
>
> When i run the pipeline i get this error:
>
> Running on master in /var/lib/jenkins/workspace/Jenkins Library 
> Development[Pipeline] {[Pipeline] }[Pipeline] // node[Pipeline] End of 
> Pipelinehudson.remoting.ProxyException: groovy.lang.MissingMethodException: 
> No signature of method: static softvision.jenkins.Utils.tool() is applicable 
> for argument types: (java.lang.String) values: [3.3]
> Possible solutions: wait(), run(), run(), find(), grep(), any()
>   at 
> groovy.lang.MetaClassImpl.invokeStaticMissingMethod(MetaClassImpl.java:1506)
>   at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1492)
>   at 
> org.codehaus.groovy.runtime.callsite.StaticMetaClassSite.call(StaticMetaClassSite.java:53)
>   at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
>   at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
>   at 
> com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:18)
>   at 
> softvision.jenkins.Utils.getGradleBinPath(file:/var/lib/jenkins/jobs/Jenkins%20Library%20Development/builds/89/libs/softvision-pipelines/src/softvision/jenkins/Utils.groovy:7)
>   at runGradle.call(/var/lib/jenkins/jobs/Jenkins Library 
> Development/builds/89/libs/softvision-pipelines/vars/runGradle.groovy:11)
>   at WorkflowScript.run(WorkflowScript:6)
>   at ___cps.transform___(Native Method)
>   at 
> com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:57)
>   at 
> com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:109)
>   at 
> com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:82)
>   at sun.reflect.GeneratedMethodAccessor273.invoke(Unknown Source)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:498)
>   at 
> com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
>   at 
> com.cloudbees.groovy.cps.impl.LocalVariableBlock$LocalVariable.get(LocalVariableBlock.java:39)
>   at 
> com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30)
>   at 
> com.cloudbees.groovy.cps.impl.LocalVariableBlock.evalLValue(LocalVariableBlock.java:28)
>   at 
> com.cloudbees.groovy.cps.LValueBlock$BlockImpl.eval(LValueBlock.java:55)
>   at com.cloudbees.groovy.cps.LValueBlock.eval(LValueBlock.java:16)
>   at com.cloudbees.groovy.cps.Next.step(Next.java:74)
>   at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:154)
>   at 
> org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
>   at 
> org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33)
>   at 
> org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30)
>  

Re: Multiline regex not working in Build Failure Analyzer Plugin

2017-08-06 Thread Victor Martinez
I was able to test it and it works like a charm with the below versions:
- BFA: 1.19.0
- Jenkins 2.60.2

Cheers 

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7a4648e6-b655-47e7-a623-de8dfaecd47c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Help with NotSerializableException in pipeline

2017-08-06 Thread Michael Pailloncy
It seems like there are some variables used out of their scope and some
misused Groovy methods.

Here is a working version, IIUC your pipeline :-)

#!groovy

def behatList =['AutoSuiteSet_0', 'AutoSuiteSet_1', 'AutoSuiteSet_2',
'AutoSuiteSet_3', 'AutoSuiteSet_4', 'AutoSuiteSet_5']
def suitesStat=[AutoSuiteSet_0:0, AutoSuiteSet_1:1, AutoSuiteSet_2:2,
AutoSuiteSet_3:3, AutoSuiteSet_4:4, AutoSuiteSet_5:5]

stage("test") {
node('master') {
behatList2=sortSuites(behatList, suitesStat)
echo "SUITES2=${behatList2}"
}
}

@NonCPS
def sortSuites(suites, suites_time){
def timeLimit = suites_time.values().max()
def suitesMap= [:]
for(s in suites){
def x = suites_time.find{ artifact -> artifact.key == s}
if(x){
suitesMap.put(x.key, x.value)
}else{
suitesMap.put(s, timeLimit)
}
}
def tasks = [suitesMap]
timeLimit = suitesMap.values().max()
while(canSplit(tasks, timeLimit)) {
tasks = tasks.collect { t ->
if(checkLimit(t, timeLimit)){
t = splitTo2(t)
}
t
}.flatten()
}
tasks.sort { a, b -> b.values().sum() <=> a.values().sum() }
// tasks = tasks.collect { t -> t.keySet()} // not working, multiple
elements are collected here
tasks = tasks.collectMany { t -> t.keySet()}
return tasks
}


@NonCPS
def checkLimit(t, timeLimit) {
if(t.values().sum()>timeLimit && t.size()>1){
return true
}else{
return false
}
}

@NonCPS
def canSplit(tasks, timeLimit) {
  for(t in tasks) {
  if(checkLimit(t, timeLimit)){
  return true
  }
  }
  return false
}


@NonCPS
def splitTo2(int_map) {
A=[:]
B=[:]

// int_map.sort{it.value} not working
// for(n in int_map.sort{it.value}) {
for(n in int_map) {
if (A.size() < B.size()) {
A.put(n.key, n.value)
}else{
B.put(n.key, n.value)
}
}
return [A, B]
}


However, what do you want to achieve exactly ? One of the main advantage of
Pipeline is its resumability after restart. But if you use too many
@NonCPS, you avoid this feature and this could lead to unexpected behaviour
sometimes.

Hopefully it helps :-)


2017-08-04 19:17 GMT+02:00 Slava Dubrovskiy :

> Hi.
>
> I use a special algorithm to pre-sort the steps for parallel start.
> Here is my test pipeline:
>
> #!groovy
>
> def behatList =['AutoSuiteSet_0', 'AutoSuiteSet_1', 'AutoSuiteSet_2',
> 'AutoSuiteSet_3', 'AutoSuiteSet_4', 'AutoSuiteSet_5']
> def suitesStat=[AutoSuiteSet_0:0, AutoSuiteSet_1:1, AutoSuiteSet_2:2,
> AutoSuiteSet_3:3, AutoSuiteSet_4:4, AutoSuiteSet_5:5]
>
> stage("test") {
> node('master') {
> behatList2=sortSuites(behatList, suitesStat)
> echo "SUITES2=${behatList2}"
> }
> }
>
> @NonCPS
> def sortSuites(suites, suites_time){
> timeLimit = suites_time.values().max()
> def suitesMap= [:]
> for(s in suites){
> x=suites_time.find{ artifact -> artifact.key == s}
> if(x){
> suitesMap.put(x.key, x.value)
> }else{
> suitesMap.put(s, timeLimit)
> }
> }
> tasks = [suitesMap]
> timeLimit = suitesMap.values().max()
> while(canSplit()) {
> tasks = tasks.collect { t ->
> if(checkLimit(t)){
> t = splitTo2(t)
> }
> t
> }.flatten()
> }
> tasks.sort { a, b -> b.values().sum() <=> a.values().sum() }
> tasks = tasks.collect { t -> t.keySet()}
> return tasks
> }
>
>
> @NonCPS
> def checkLimit(t) {
> if(t.values().sum()>timeLimit && t.size()>1){
> return true
> }else{
> return false
> }
> }
>
> @NonCPS
> def canSplit() {
>   for(t in tasks) {
>   if(checkLimit(t)){
>   return true
>   }
>   }
>   return false
> }
>
>
> @NonCPS
> def splitTo2(int_map) {
> A=[:]
> B=[:]
> for(n in int_map.sort{it.value}) {
> if (A.size() < B.size()) {
> A.put(n.key, n.value)
> }else{
> B.put(n.key, n.value)
> }
> }
> return [A, B]
> }
>
>
>
> If I run it, I get the error:
> an exception which occurred:
>  in field delegate
>  in field closures
>  in object org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@7fd2cde1
> Caused: java.io.NotSerializableException: java.util.LinkedHashMap$Entry
>  at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(Ri
> verMarshaller.java:860)
>  at org.jboss.marshalling.river.BlockMarshaller.doWriteObject(Bl
> ockMarshaller.java:65)
>  at org.jboss.marshalling.river.BlockMarshaller.writeObject(Bloc
> kMarshaller.java:56)
>  at org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride
> (MarshallerObjectOu
> ...
>
> Please, help me what is wrong?
> All methods under @NonCPS directive.
>
> --
> WBR,
> Slava.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To un

Re: Exception while Sending Mail through 'Email Notification' in Jenkins via GMAIL

2017-08-06 Thread Slide
I think you need to check the "Use SSL" checkbox.

On Sun, Aug 6, 2017 at 4:12 AM neeraj bakhtani 
wrote:

> Hi Friends,
> I am facing issue while sending mail through Jenkins Job.
>
> I am getting below Exception when I try to send Email through 'Gmail'
>
> Pls let me know what I am doing wrong and steps I need to do to avoid this
> Exception.
>
>
>
> *Configurations*
> E-mail Notification
>   SMTP server [image: Help for feature: SMTP server]
> 
>
>   Default user e-mail suffix [image: Help for feature: Default user
> e-mail suffix] 
>
> Use SMTP Authentication [image: Help for feature: Use SMTP Authentication]
> 
>   User Name
>   Password
>   Use SSL [image: Help for feature: Use SSL]
> 
>   SMTP Port [image: Help for feature: SMTP Port]
> 
>   Reply-To Address
>   Charset
> Test configuration by sending test e-mail
>   Test e-mail recipient
>
> Test configuration
>
>
> *Exception:*
>
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
>   at sun.security.provider.certpath.SunCertPathBuilder.build(Unknown 
> Source)
>   at 
> sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
>   at java.security.cert.CertPathBuilder.build(Unknown Source)
> Caused: sun.security.validator.ValidatorException: PKIX path building failed
>   at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
>   at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
>   at sun.security.validator.Validator.validate(Unknown Source)
>   at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
>   at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
>   at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown 
> Source)
> Caused: javax.net.ssl.SSLHandshakeException
>   at sun.security.ssl.Alerts.getSSLException(Unknown Source)
>   at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
>   at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
>   at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
>   at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
>   at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
>   at sun.security.ssl.Handshaker.processLoop(Unknown Source)
>   at sun.security.ssl.Handshaker.process_record(Unknown Source)
>   at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
>   at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown 
> Source)
>   at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
>   at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
>   at 
> com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:507)
>   at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:238)
>   at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1900)
> Caused: javax.mail.MessagingException: Could not connect to SMTP host: 
> smtp.gmail.com, port: 465;
>   nested exception is:
>   javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
>   at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1934)
>   at 
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638)
>   at javax.mail.Service.connect(Service.java:317)
>   at javax.mail.Service.connect(Service.java:176)
>   at javax.mail.Service.connect(Service.java:125)
>   at javax.mail.Transport.send0(Transport.java:194)
>   at javax.mail.Transport.send(Transport.java:124)
>   at hudson.tasks.Mailer$DescriptorImpl.doSendTestMail(Mailer.java:581)
>   at java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)
>   at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
>   at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
>   at 
> org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
>   at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
>   at 
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
>   at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
>   at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
>   at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:248)
>   at 
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
>   at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
>   at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
>   at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)

Re: rsync failed: ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory

2017-08-06 Thread Michael Pailloncy
Ok, if I refer to logs above, you want to copy files from *icsl7024* machine
to *cg-sv-h118* workspace. Right ?
My question was not very clear, but I would like to know how do you provide
credentials between *cg-sv-h118 *and *i**csl7024* machines ?

Can you please also confirm that outside of Jenkins, you are able to
connect from *cg-sv-h118 *to *icsl7024 *through SSH (without password) ?
Can you also check if */home/${USER}/.ssh/* directory and
*/home/${USER}/.ssh/authorized_keys* file have the correct file permissions
(respectively 700 and 644) on both machines ?

Michaël


2017-08-06 13:31 GMT+02:00 Shiran :

> Hi,
>
> I'm connecting to this node via ssh , and I have the host and credentials
> configured in the node's configuration in Jenkins.
> The same rsync command is working just fine when I'm doing it outside
> Jenkins.
>
>
> On Sunday, August 6, 2017 at 10:53:41 AM UTC+3, mpapo - Michael Pailloncy
> wrote:
>>
>> ssh is asking for the password or a passphrase if the key is invalid.
>> Is-there a passphrase configured for this key ? Have you tried to connect
>> directly using ssh from this machine to the target one ?
>> BTW, how do you provide credentials ?
>>
>> 2017-08-06 9:28 GMT+02:00 Shiran :
>>
>>> Hi,
>>>
>>> I'm copying files from one machine to another (to *cg-sv-h118* in the
>>> log below) using rsync command.
>>> Important to say that this command is working as expected in other
>>> machines I use (all have the same setup)
>>> Can you help me understand the yellow errors below?
>>> Thanks!
>>>
>>> *Log:*
>>>
>>> *22:22:15* Building remotely on *cg-sv-h118* in workspace 
>>> /local/jenkins_ws/workspace/open_val*22:22:15* [open_val] $ /bin/bash 
>>> /tmp/hudson8936548899971970339.sh
>>> *22:22:15* Starting to rsync files from parent workspace: 
>>> icsl7024:/tmp/jenkins_ws/workspace/post_trigger*22:22:15* 
>>> *22:22:15* Use of this 
>>> system by unauthorized persons or   *22:22:15* in an unauthorized manner is 
>>> strictly prohibited*22:22:15* 
>>> *22:22:15* ssh_askpass: 
>>> exec(/usr/bin/ssh-askpass): No such file or directory*22:22:16* 
>>> ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or 
>>> directory*22:22:17* ssh_askpass: exec(/usr/bin/ssh-askpass): No such file 
>>> or directory*22:22:17* Permission denied 
>>> (gssapi-with-mic,publickey).*22:22:17* rsync: connection unexpectedly 
>>> closed (0 bytes received so far) [Receiver]*22:22:17* rsync error: 
>>> unexplained error (code 255) at io.c(226) [Receiver=3.1.1]
>>>
>>>
>>>
>>> --
>>> 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/ms
>>> gid/jenkinsci-users/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%
>>> 40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/f21add86-7c1d-4e27-901c-75161cd4864c%40googlegroups.
> com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPO77c0SNgV-3axFfS9vNFUmuTQtT4_WffUc1H41L-oCTmtZ9w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is it possible to make a mix job with Freestyle and Pipeline ?

2017-08-06 Thread Eldad Cohen
Hi,

What is the best practice to work on the freestyle workspace , since the 
freestyle job is doing a checkout of the code via TFSVS.
Do I need to use   a Custom workspace or to copy all workspace ?

Thanks


On Saturday, August 5, 2017 at 1:31:45 PM UTC+3, Victor Martinez wrote:
>
> You can use pipeline and orchestrate Freestyle jobs:
> - 
> https://jenkins.io/doc/pipeline/steps/pipeline-build-step/#build-build-a-job
>
> For instance, see the below declarative pipeline snippet:
>
>
> pipeline {
>
> agent any
>
> stages {
>
> stage('Build TFSVS') {
> steps {
>
>  build job: 'YourFreeStyleJob'
>
> }
> }
>
> }
>
> }
>
>
>
> You can see further examples in the below url:
> - https://jenkins.io/doc/pipeline/examples/#trigger-job-on-all-nodes
>
> Probably you can combine JobDSL and Pipeline to code your Jenkins 
> Jobs/Pipelines 
>
> I hope it helps.
>
> Cheers
>
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a5d6a567-7939-49fb-9760-9b04c2bfb185%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: rsync failed: ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory

2017-08-06 Thread Shiran
Hi,

I'm connecting to this node via ssh , and I have the host and credentials 
configured in the node's configuration in Jenkins.
The same rsync command is working just fine when I'm doing it outside 
Jenkins.


On Sunday, August 6, 2017 at 10:53:41 AM UTC+3, mpapo - Michael Pailloncy 
wrote:
>
> ssh is asking for the password or a passphrase if the key is invalid. 
> Is-there a passphrase configured for this key ? Have you tried to connect 
> directly using ssh from this machine to the target one ?
> BTW, how do you provide credentials ?
>
> 2017-08-06 9:28 GMT+02:00 Shiran >:
>
>> Hi,
>>
>> I'm copying files from one machine to another (to *cg-sv-h118* in the 
>> log below) using rsync command.
>> Important to say that this command is working as expected in other 
>> machines I use (all have the same setup)
>> Can you help me understand the yellow errors below?
>> Thanks!
>>
>> *Log:*
>>
>> *22:22:15* Building remotely on *cg-sv-h118* in workspace 
>> /local/jenkins_ws/workspace/open_val*22:22:15* [open_val] $ /bin/bash 
>> /tmp/hudson8936548899971970339.sh
>> *22:22:15* Starting to rsync files from parent workspace: 
>> icsl7024:/tmp/jenkins_ws/workspace/post_trigger*22:22:15* 
>> *22:22:15* Use of this 
>> system by unauthorized persons or   *22:22:15* in an unauthorized manner is 
>> strictly prohibited*22:22:15* 
>> *22:22:15* ssh_askpass: 
>> exec(/usr/bin/ssh-askpass): No such file or directory*22:22:16* ssh_askpass: 
>> exec(/usr/bin/ssh-askpass): No such file or directory*22:22:17* ssh_askpass: 
>> exec(/usr/bin/ssh-askpass): No such file or directory*22:22:17* Permission 
>> denied (gssapi-with-mic,publickey).*22:22:17* rsync: connection unexpectedly 
>> closed (0 bytes received so far) [Receiver]*22:22:17* rsync error: 
>> unexplained error (code 255) at io.c(226) [Receiver=3.1.1]
>>
>>
>>
>> -- 
>> 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/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f21add86-7c1d-4e27-901c-75161cd4864c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Exception while Sending Mail through 'Email Notification' in Jenkins via GMAIL

2017-08-06 Thread neeraj bakhtani
Hi Friends,
I am facing issue while sending mail through Jenkins Job.

I am getting below Exception when I try to send Email through 'Gmail' 

Pls let me know what I am doing wrong and steps I need to do to avoid this 
Exception.



*Configurations*
E-mail Notification
  SMTP server [image: Help for feature: SMTP server] 


  Default user e-mail suffix [image: Help for feature: Default user e-mail 
suffix] 

Use SMTP Authentication [image: Help for feature: Use SMTP Authentication] 

  User Name 
  Password 
  Use SSL [image: Help for feature: Use SSL] 

  SMTP Port [image: Help for feature: SMTP Port] 

  Reply-To Address 
  Charset 
Test configuration by sending test e-mail 
  Test e-mail recipient 
  
Test configuration


*Exception:*

sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.build(Unknown 
Source)
at 
sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
at java.security.cert.CertPathBuilder.build(Unknown Source)
Caused: sun.security.validator.ValidatorException: PKIX path building failed
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at sun.security.validator.Validator.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown 
Source)
Caused: javax.net.ssl.SSLHandshakeException
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
at sun.security.ssl.Handshaker.processLoop(Unknown Source)
at sun.security.ssl.Handshaker.process_record(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown 
Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at 
com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:507)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:238)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1900)
Caused: javax.mail.MessagingException: Could not connect to SMTP host: 
smtp.gmail.com, port: 465;
  nested exception is:
javax.net.ssl.SSLHandshakeException: 
sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1934)
at 
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638)
at javax.mail.Service.connect(Service.java:317)
at javax.mail.Service.connect(Service.java:176)
at javax.mail.Service.connect(Service.java:125)
at javax.mail.Transport.send0(Transport.java:194)
at javax.mail.Transport.send(Transport.java:124)
at hudson.tasks.Mailer$DescriptorImpl.doSendTestMail(Mailer.java:581)
at java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
at 
org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:248)
at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at 
org.eclipse.jetty.servlet.ServletHolder.h

Re: How to use "secret text" credential inside NodeJS app as part of a pipeline?

2017-08-06 Thread Idan Adar
Also, if I will print all of process.env when running npm test via the 
Jenkinsfile, I can see the Jenkins logs that the not-working value is 
printed...

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/77559762-bcb2-496e-9ac9-10ca22dfac37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to use "secret text" credential inside NodeJS app as part of a pipeline?

2017-08-06 Thread Idan Adar
Actually I think it does work... for the most part...

Working example:I created a "secret text" credential containing some 
password value and I then put the credential's ID as the value for a Global 
Variable called "myPassword".
In the Global Variables section there is a checkbox, "environment 
variables".

These key-value pairs apply for every build on every node. They can be used 
in Jenkins' configuration (as $key or ${key}) and will be added to the 
environment for processes launched from the build.


Then, in the Jenkinsfile I do as in my previous post.

environment {
myPassword = credentials('${myPassword}')  
...
}

This extracts the value of the credential (the name references the ID) into 
myPassword.

Lastly, in the JavaScript I reference it as process.env.myPassword
When npm test is run as part of the Jenkinsfile, it works this way for all 
credentials that I "inject", except for a credential that is a JSON like 
this:

{"property":"value", "property": "value", "property": "value", "property": 
"value"}


This breaks for some reason.

When running locally (outside of jenkins) with npm test, the values are 
stored in a local .js file and it works flawlessly.


On Thursday, August 3, 2017 at 8:44:41 PM UTC+3, Joshua Noble wrote:
>
> The secret text being printed as *** is a feature, so credentials aren't 
> leaked in console logs. You cannot use Jenkins credentials during 
> application runtime. (ie: If you deploy a backend Node app to an app 
> server) You can however use Jenkins credentials to run npm scripts, such as 
> npm test, (which require the Node runtime) within a Jenkins build.
>
> The credentials function needs an input of the credential ID. When a 
> credential is created, you can set the ID value to a custom one, such as a 
> human-friendly name. Otherwise, you will end up with a unique UUID.
>
> Everyone has their own personal taste, but I would refactor the 
> Jenkinsfile above to the following:
>
> stage ("E2E tests") {  
>   when {
> branch 'e2e-dev'
>   }
>   environment {
> MY_SECRET = credentials('jenkins-secret-id')
>   }   
>   steps {
> sh 'rm -f config/e2e-config.json'
> sh 'mv config/e2e-dev-config.json config/e2e-config.json'
> sh 'npm install'
> sh 'npm test'
>   }
> }
>
> With the above Jenkinsfile, you should be able to reference your secret 
> with ${MY_SECRET} anywhere in the code or shell steps, but only when 
> running npm scripts. This will not work for running applications on a 
> server. It should be noted that if you need to specify the secret within a 
> shell step line, that line must use double quotes to resolve the variable 
> properly.
>
> Another way of doing this would be:
>
> withCredentials([string(credentialsId: 'credential-id-here', variable: 
> 'CUSTOM_VARIABLE_NAME_HERE')]) {
>   sh "MY_SECRET=CUSTOM_VARIABLE_NAME_HERE npm test"
> }
>
> I hope that helps.
>
>
> On Thursday, August 3, 2017 at 6:26:28 AM UTC-4, Idan Adar wrote:
>>
>> I have done the following:
>>
>> 1. Create a "secret text" type credential
>> 2. Put in the credential a password
>> 3. Create a Global Variable, mySecret, with its value being the 
>> credential ID
>> 4. In the declarative pipeline: 
>>
>> stage ("E2E tests") {  
>>  environment {
>> mySecret = credentials('${mySecret}')
>>  }
>>  
>>  steps {
>> script {
>>STAGE_NAME = "E2E tests"
>>echo " $mySecret"
>>
>>
>>if (JOB_NAME == "e2e-dev") {
>>   // Setup packages and run tests
>>   sh '''
>>  rm -f config/e2e-config.json
>>  mv config/e2e-dev-config.json config/e2e-config.json
>>  npm install
>>  npm test
>>   '''
>>}
>>}
>> }
>> }
>>
>> In Jenkins, the secret text is printed: "*"
>> In the NodeJS app, I'm getting an error...
>>
>> Global Variables in Jenkins can also be used as environment variables and 
>> I know I can use those as clear text in the NodeJS app.
>> My question is how to use Jenkins credentials from Jenkins in the NodeJS 
>> app...
>>
>> Any thoughts?
>>
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d1e51b34-8fc4-4785-9b86-eee09072eb52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Centralized Job Monitoring

2017-08-06 Thread Michael Pailloncy
I'm wondering why are you not considering Jenkins agents for now ?
Usually, there is a Jenkins master which schedules and monitors job
execution, and agents on which the build is executed. Through Jenkins UI,
you can then get the build result/logs and know which was the agent used
for the build.

2017-08-04 16:59 GMT+02:00 Pradeep Patra :

> Hi all,
>
> I am looking for a Jenkins job monitoring application/tool which can
> monitor the Jobs from a centralized server. For example I have multiple
> Jenkins servers (1-5) behind a load balancer and the Jenkins jobs can be
> scheduled in any of the servers. I want to know which server the build is
> being executed from a centralized server/location(Not considering Jenkins
> slaves for now). Is it possible? If yes can let me know if we can achieve
> this in some way?
>
> Regards
> Pradeep
>
> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/4edf1d37-8a7d-48d7-bbc1-9bec3f93a105%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPO77c1qsAH5kqh%3DTwO3sx-4OD49hF86YWtH2oomQV7k4LeOrg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: rsync failed: ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory

2017-08-06 Thread Michael Pailloncy
ssh is asking for the password or a passphrase if the key is invalid.
Is-there a passphrase configured for this key ? Have you tried to connect
directly using ssh from this machine to the target one ?
BTW, how do you provide credentials ?

2017-08-06 9:28 GMT+02:00 Shiran :

> Hi,
>
> I'm copying files from one machine to another (to *cg-sv-h118* in the log
> below) using rsync command.
> Important to say that this command is working as expected in other
> machines I use (all have the same setup)
> Can you help me understand the yellow errors below?
> Thanks!
>
> *Log:*
>
> *22:22:15* Building remotely on *cg-sv-h118* in workspace 
> /local/jenkins_ws/workspace/open_val*22:22:15* [open_val] $ /bin/bash 
> /tmp/hudson8936548899971970339.sh
> *22:22:15* Starting to rsync files from parent workspace: 
> icsl7024:/tmp/jenkins_ws/workspace/post_trigger*22:22:15* 
> *22:22:15* Use of this system 
> by unauthorized persons or   *22:22:15* in an unauthorized manner is strictly 
> prohibited*22:22:15* 
> *22:22:15* ssh_askpass: 
> exec(/usr/bin/ssh-askpass): No such file or directory*22:22:16* ssh_askpass: 
> exec(/usr/bin/ssh-askpass): No such file or directory*22:22:17* ssh_askpass: 
> exec(/usr/bin/ssh-askpass): No such file or directory*22:22:17* Permission 
> denied (gssapi-with-mic,publickey).*22:22:17* rsync: connection unexpectedly 
> closed (0 bytes received so far) [Receiver]*22:22:17* rsync error: 
> unexplained error (code 255) at io.c(226) [Receiver=3.1.1]
>
>
>
> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPO77c2YwYCLhPKKNH%3DPqDSr3XYDHW%3DfBdvF9KMKLNYSpM2WyA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


rsync failed: ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory

2017-08-06 Thread Shiran
Hi,

I'm copying files from one machine to another (to *cg-sv-h118* in the log 
below) using rsync command.
Important to say that this command is working as expected in other machines 
I use (all have the same setup)
Can you help me understand the yellow errors below?
Thanks!

*Log:*

*22:22:15* Building remotely on *cg-sv-h118* in workspace 
/local/jenkins_ws/workspace/open_val*22:22:15* [open_val] $ /bin/bash 
/tmp/hudson8936548899971970339.sh
*22:22:15* Starting to rsync files from parent workspace: 
icsl7024:/tmp/jenkins_ws/workspace/post_trigger*22:22:15* 
*22:22:15* Use of this system 
by unauthorized persons or   *22:22:15* in an unauthorized manner is strictly 
prohibited*22:22:15* *22:22:15* 
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory*22:22:16* 
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory*22:22:17* 
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory*22:22:17* 
Permission denied (gssapi-with-mic,publickey).*22:22:17* rsync: connection 
unexpectedly closed (0 bytes received so far) [Receiver]*22:22:17* rsync error: 
unexplained error (code 255) at io.c(226) [Receiver=3.1.1]



-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1b65beed-2e2e-4d4d-b0ee-9c5c0ddaf125%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.