Publish Over SSH after build failure

999 views
Skip to first unread message

Barry Laffoy

unread,
Jul 13, 2015, 6:31:08 AM7/13/15
to jenkins...@googlegroups.com
Hi

I'd like to publish build artifacts from testing and linting jobs (XMLs, JSON) to an external server over SSH. To do this, I'm using the Publish Over SSH plugin. I have a problem though, in that if there are any testing or linting errors the build is marked as a failure. After this, Publish Over SSH refuses to copy the build artifacts.

   
10:05:21 SSH: Current build result is [FAILURE], not going to run.

How can I force Publish Over SSH to work even if the build has been marked a failure?

Thanks

Barry Laffoy

unread,
Jul 13, 2015, 8:58:58 AM7/13/15
to jenkins...@googlegroups.com
I tried wrapping the Publish Over SSH post-build step with a Flexible-Publish conditional action set to always, but the same outcome results.

I think that I may have to use scp from bash scripts to do my publishing, if Jenkins refuses to cooperate.

--
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/A7asd_IpSuU/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/5ceddb69-e8ff-4b37-8821-ee41bf5515aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bap

unread,
Jul 14, 2015, 10:12:01 AM7/14/15
to jenkins...@googlegroups.com
Quoting Barry Laffoy <laf...@gmail.com>:

> How can I force Publish Over SSH to work even if the build has been marked
> a failure?

Use "Send files or execute commands over SSH after the build runs" in
configuration section "Build environment"

Barry Laffoy

unread,
Jul 14, 2015, 10:26:09 AM7/14/15
to jenkins...@googlegroups.com
Thanks for your response. Do you know if this configuration option is available in Jenkins Job Builder? I have otherwise implemented the publishing step by shelling out to rsync.

--
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/A7asd_IpSuU/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