1
resposta

Deploy automatico atraves de agente slave

Bom dia,

Aqui na empresa utilizamos SVN para controle de versão Criei meu JOB(opção Pipeline) com os passos: checkout SCM, zip archive e fingerprints, já rodando com sucesso.

Como utilizei a opção de pipeline para criação do meu Job, o próximo estágio será a realização do deploy em servidor linux(AIX) através de agente(slave), o que ocorre sem sucesso por não conseguir sincronia com o servidor de destino


just before slave 192.168.13.5 - JAVA gets launched ...
executing pre-launch scripts ...
[07/26/17 11:01:24] [SSH] Opening SSH connection to 192.168.13.5 :22.
Connection refused: connect
SSH Connection failed with IOException: "Connection refused: connect".
java.io.IOException: There was a problem while connecting to 192.168.13.5 :22
    at com.trilead.ssh2.Connection.connect(Connection.java:834)
    at com.trilead.ssh2.Connection.connect(Connection.java:703)
    at com.trilead.ssh2.Connection.connect(Connection.java:617)
    at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1278)
    at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:803)
    at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:792)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at com.trilead.ssh2.transport.TransportManager.establishConnection(TransportManager.java:367)
    at com.trilead.ssh2.transport.TransportManager.initialize(TransportManager.java:480)
    at com.trilead.ssh2.Connection.connect(Connection.java:774)
    ... 9 more
[07/26/17 11:01:25] Launch failed - cleaning up connection
[07/26/17 11:01:25] [SSH] Connection closed.so.

I
1 resposta

Sandro, tudo bem ?

Cara a conexão está sendo rejeitada. Um chute que tenho é que sua url está com um espaço entre o endereço e a porta.

Remove esse espaço e vê se rola :D