Hi
jenkins 1.644when running a freestyle job, i want to collect data using a netcat (or telnet command) running inside a scripting shell on top a jenkins slave
body is not received when sending from jenkins job (see at the end)
#!/bin/bash
ping -c 1 IP # always fine and port is listening
#KO no output
telnet IP PORT
#KO no output
ncat -i 2 IP PORT
I thought about an issue related to "terminal type negotiation".
I tried setting
export TERM=xterm ; # or dumbbut fails too.
Any ideas welcome.
output differs :
Trying IP...
Connected to IP.
Escape character is '^]'.
Connection closed by foreign host.Trying IP...
Connected to IP.
Escape character is '^]'.
my body is received
with everything expected
Connection closed by foreign host.