You should be able to put that in an sh (scripted) or script 
(declarative).  For example:

sh '''
             echo 'abc123 blahblahblah' | nc public.endpoint.com 10514
'''

On Thursday, August 30, 2018 at 8:24:03 AM UTC-5, red 888 wrote:
>
> There is the excellent "httpRequest" I can use in a pipeline build step.
>
> But now I want to send a raw TCP request, I could not find a plugin for 
> this. Is there a supported plugin feature for this? I want to avoid 
> shelling out for this.
>
> This is an example of the raw TCP request I am making:
>
>     echo 'abc123 blahblahblah' | nc public.endpoint.com 10514
>
> I the endpoint supports tls so I'd like to use that for the connection too.
>
> If there is no plugin is it possible to write a groovy class in "src" 
> folder that uses the Java tcp client to esblish a tls connection and send 
> messages?
>
>

-- 
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/6de0a1c1-8a14-45f5-8537-881f8782709e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to