[
https://issues.apache.org/jira/browse/HBASE-26339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17425929#comment-17425929
]
Duo Zhang commented on HBASE-26339:
-----------------------------------
https://plugins.jenkins.io/publish-over-ssh/
{noformat}
There will be two new options in the Build Environment section of the job
configuration
1. Send files or execute commands over SSH before the build starts
This allows SSH to be used before a build begins, but after the workspace has
been configured and source checked out
Most useful for maven project types
2. Send files or execute commands over SSH after the build runs
As long as the build was attempted, this will run after the build finishes, and
will run whether the build is successful or not
This allows cleanup or shutdown of services started before or during the build
Use the publisher (Send build artifacts over SSH in Post-build Actions) to
publish build artifacts from successful builds
{noformat}
So if we use post build actions, then it will only publish artifacts when build
is not failure. We need to use 'Send files or execute commands over SSH after
the build runs'.
I checked on the jenkins page, it is possible, but for our jenkins pipeline,
there are two problems:
1. I do not know what is the correct way to write jenkins pipeline to make use
of 'Send files or execute commands over SSH after the build runs'.
2. We will zip the test output and archiveArtifacts in the post build section,
we need to insert the uploading operation between these two operations, so if
we do not want to upload in post build action, then we need a full rewrite of
our post build actions. It will be a big pain.
So a possible solution is to find out how to only mark the build as unstable
instead of failure when the yetus check fails. For me I think unstable is
enough.
[~busbey] FYI.
Thanks.
> SshPublisher will skip uploading artifacts if the build is failure
> ------------------------------------------------------------------
>
> Key: HBASE-26339
> URL: https://issues.apache.org/jira/browse/HBASE-26339
> Project: HBase
> Issue Type: Sub-task
> Components: jenkins, scripts
> Reporter: Duo Zhang
> Assignee: Duo Zhang
> Priority: Major
>
> This is not what we expect, need to force it always try to upload the
> artifacts.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)