[JIRA] [publish-over-ssh-plugin] (JENKINS-26439) Build does not abort when «Send files or execute commands over SSH» fails

2016-05-29 Thread liyao.capeh...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Yao Li updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-26439 
 
 
 
  Build does not abort when «Send files or execute commands over SSH» fails  
 
 
 
 
 
 
 
 
 

Change By:
 
 Yao Li 
 
 
 

Comment:
 
 Hit the problem in Jenkins 2.0 shell step also.ssh @ip << EOF   command_1   command_2EOFRun aborted on command_1 error, but job still finished "SUCCESS" 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [publish-over-ssh-plugin] (JENKINS-26439) Build does not abort when «Send files or execute commands over SSH» fails

2016-05-29 Thread liyao.capeh...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Yao Li commented on  JENKINS-26439 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Build does not abort when «Send files or execute commands over SSH» fails  
 
 
 
 
 
 
 
 
 
 
Hit the problem in Jenkins 2.0 shell step also. ssh @ip << EOF command_1 command_2 EOF 
Run aborted on command_1 error, but job still finished "SUCCESS" 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [publish-over-ssh-plugin] (JENKINS-26439) Build does not abort when «Send files or execute commands over SSH» fails

2015-09-28 Thread chris.ad...@itential.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Chris Adams edited a comment on  JENKINS-26439 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Build does not abort when «Send files or execute commands over SSH» fails  
 
 
 
 
 
 
 
 
 
 Same problem. I have tested by explicitly exiting with non-zero status and still get:{{  SSH: EXEC: completed after 23,017 msSSH: Disconnecting configuration [centos@ 52.20.86.102  ] ...SSH: Transferred 1 file(s)Finished: SUCCESS  }}My guess is that it's exiting with the original scp/sftp transfer set RC and not the Exec command status. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [publish-over-ssh-plugin] (JENKINS-26439) Build does not abort when «Send files or execute commands over SSH» fails

2015-09-28 Thread chris.ad...@itential.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Chris Adams commented on  JENKINS-26439 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Build does not abort when «Send files or execute commands over SSH» fails  
 
 
 
 
 
 
 
 
 
 
Same problem. I have tested by explicitly exiting with non-zero status and still get: 
{{Hint: Some lines were ellipsized, use -l to show in full. SSH: EXEC: completed after 23,017 ms SSH: Disconnecting configuration [centos@52.20.86.102] ... SSH: Transferred 1 file(s) Finished: SUCCESS}} 
My guess is that it's exiting with the original scp/sftp transfer set RC and not the Exec command status. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [publish-over-ssh-plugin] (JENKINS-26439) Build does not abort when «Send files or execute commands over SSH» fails

2015-09-28 Thread chris.ad...@itential.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Chris Adams edited a comment on  JENKINS-26439 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Build does not abort when «Send files or execute commands over SSH» fails  
 
 
 
 
 
 
 
 
 
 Same problem. I have tested by explicitly exiting with non-zero status and still get:{{ Hint: Some lines were ellipsized, use -l to show in full. SSH: EXEC: completed after 23,017 msSSH: Disconnecting configuration [centos@52.20.86.102] ...SSH: Transferred 1 file(s)Finished: SUCCESS}}My guess is that it's exiting with the original scp/sftp transfer set RC and not the Exec command status. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [publish-over-ssh-plugin] (JENKINS-26439) Build does not abort when «Send files or execute commands over SSH» fails

2015-01-15 Thread marc.waecker...@tech.swisssign.com (JIRA)














































Marc Wäckerlin
 commented on  JENKINS-26439


Build does not abort when «Send files or execute commands over SSH» fails















Configuration is following:

Source files: /var/lib/jenkins/keys/shop-certificate.*
Remove prefix:
Remote directory: /var/tmp/
Exec command: ls /var/tmp/shop-certificate.*

On the jenkins server:

jenkins@dev0004:~$ ls /var/lib/jenkins/keys/shop-certificate.*
/var/lib/jenkins/keys/shop-certificate.crt  /var/lib/jenkins/keys/shop-certificate.pem
/var/lib/jenkins/keys/shop-certificate.key.pem

So problem #1 is, that files are not transfered - without any error message not abort.
That's why I added "Exec command: ls /var/tmp/shop-certificate.*", which fails but still does not abort the build - that's problem #2.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [publish-over-ssh-plugin] (JENKINS-26439) Build does not abort when «Send files or execute commands over SSH» fails

2015-01-15 Thread marc.waecker...@tech.swisssign.com (JIRA)














































Marc Wäckerlin
 created  JENKINS-26439


Build does not abort when «Send files or execute commands over SSH» fails















Issue Type:


Bug



Assignee:


bap



Components:


publish-over-ssh-plugin



Created:


15/Jan/15 8:12 AM



Description:


In case of an error, i.e. when files cannot be copied, it makes no sense to continue the build. But Jenkins does neither abort the build, when something failes, nor can I see any configuration for that behaviour.

e.g.:

SSH: Connecting from host dev0004
SSH: Connecting with configuration web9t.int.swisssign.net ...
SSH: EXEC: STDOUT/STDERR from command ls /var/tmp/shop-certificate.* ...
ls: cannot access /var/tmp/shop-certificate.*: No such file or directory
SSH: EXEC: completed after 200 ms
SSH: Disconnecting configuration web9t.int.swisssign.net ...
ERROR: Exception when publishing, exception message [Exec exit status not zero. Status 2]
Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
workspace $ /bin/bash -xe /tmp/hudson4848040255435626821.sh
+ cd webtester
+ unzip ../joomla-plugin-virtuemart-3.0.2.zip
Archive:  ../joomla-plugin-virtuemart-3.0.2.zip
  inflating: com_virtuemart.3.0.2.tar.gz  
  inflating: com_virtuemart.3.0.2_ext_aio.tar.gz  
workspace $ /bin/bash -xe /tmp/hudson2548916983990174771.sh
+ cd webtester
+ (( i=0 ))
+ (( i10 ))
+ xvfb-run a '-server-args=-screen 0 2048x2048x24' webrunner ping-joomla.wt
... build continues ...




Environment:


Ubuntu 14.04




Project:


Jenkins



Priority:


Blocker



Reporter:


Marc Wäckerlin

























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [publish-over-ssh-plugin] (JENKINS-26439) Build does not abort when «Send files or execute commands over SSH» fails

2015-01-15 Thread marc.waecker...@tech.swisssign.com (JIRA)














































Marc Wäckerlin
 commented on  JENKINS-26439


Build does not abort when «Send files or execute commands over SSH» fails















I also tried to specify the source files comma separated, instead of with "*", but that also does not work.

First: Why doesn't it work?
Second: Why doesn't it abort on failure?



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.