Jenkins Publish Over SSH for Jenkins Pipeline

1,484 views
Skip to first unread message

ctime800

unread,
Aug 11, 2016, 2:31:50 AM8/11/16
to Jenkins Users
I need to use the Jenkins Publish over ssh plugin in the Jenkins pipeline.  What would be the syntax for this?  I tried to use the script generator but this one is not in the list.  Please advise.  Thanks.

Baptiste Mathus

unread,
Aug 11, 2016, 4:37:52 PM8/11/16
to jenkins...@googlegroups.com

You can simply use a plain ssh or scp call through an sh step, wrapped in an sshagent step.

Cheers


Le 11 août 2016 8:31 AM, "ctime800" <chri...@gmail.com> a écrit :
I need to use the Jenkins Publish over ssh plugin in the Jenkins pipeline.  What would be the syntax for this?  I tried to use the script generator but this one is not in the list.  Please advise.  Thanks.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ca946069-baed-4059-8ccb-60d15e84d239%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ctime800

unread,
Aug 12, 2016, 1:41:06 AM8/12/16
to Jenkins Users, m...@batmat.net
It works.  Now, does this mean the Publish Over SSH needs to support Jenkins pipeline for this to work?  Thanks.


On Thursday, August 11, 2016 at 1:37:52 PM UTC-7, Baptiste Mathus wrote:

You can simply use a plain ssh or scp call through an sh step, wrapped in an sshagent step.

Cheers

Le 11 août 2016 8:31 AM, "ctime800" <chri...@gmail.com> a écrit :
I need to use the Jenkins Publish over ssh plugin in the Jenkins pipeline.  What would be the syntax for this?  I tried to use the script generator but this one is not in the list.  Please advise.  Thanks.

--
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.

Baptiste Mathus

unread,
Aug 12, 2016, 5:18:59 AM8/12/16
to jenkins...@googlegroups.com

Yes. Plugins have generally to be explicitly modified to support pipeline.

In that case, as this is quite simple to do with /raw/ calls, I suppose this may be the reason nobody IIRC bothered adding a step for that in publish over ssh plugin or another one.

Cheers


To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/451baa30-0b10-405b-806f-30ae9711e494%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages