Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-58955

Can't connect with slaves via API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • ec2-plugin
    • None
    • Jenkins: 2.189
      Working EC2 plugin: 1.39
      Working EC2 plugin: 1.45

      Hello everybody,

      We have the plugin up and running good, but when updating the version of the plugin we can't start slaves via API. We don't have any problems with the plugin if a slave is started due a new job running, but we have a job with the following script:

       

      @NonCPS
      def submmitCleanJob(slave){
      println "Going to submmit task to node: ${slave.name}"
      def computer = slave.toComputer()
      def connection = computer.connect(false)
      connection.get()
      build job: 'slave-clean', wait: false, propagate: false, parameters: [[$class: 'StringParameterValue', name: 'slave', value: "${slave.name}"]]
      }

      This job was working fine with plugin version 1.39, but now if the slave is stopped we can not start it from the script, and entering to see the logs of the slave we see that the connection is trying without success giving the following error "Failed to connect via ssh: The kexTimeout (10000 ms) expired."

       

            thoulen FABRIZIO MANFREDI
            lucasmessina Lucas Messina
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: