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

Performance degradation running pipeline step sh on remote agents

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not A Defect
    • ssh-slaves-plugin
    • None
    • Jenkins ver. 2.150.2
      ssh-slaves plugin version 1.27 to 1.29.4

    Description

      I noticed a severe performance degradation in the execution of the pipeline sh step when the agent is connected via the ssh-slaves plugin. 

      I performed extra testing on a standalone jenkins installed from docker image jenkins/jenkins:lts with a number of different versions of the ssh-slaves plugin.

      Attached is the Jenkinsfile I used to test this.

      With 10 iterations of the sh step, versions 1.26 takes 14-15 seconds while version 1.27 takes 24-27 seconds.

      That is without taking into account the first build after the agent has started which always takes longer (22 seconds in 1.26 and 40 seconds in 1.27)

       

      I have also tried "Launch agent via execution of a command on the master" which performs in a way comparable to the ssh-slaves plugin in version before 1.27.

       

      The only workaround I found is to keep the ssh-slaves plugin at version 1.26.

      Attachments

        Activity

          nancyrobertson2005 Nancy Robertson created issue -
          ifernandezcalvo Ivan Fernandez Calvo made changes -
          Field Original Value New Value
          Resolution Not A Defect [ 7 ]
          Status Open [ 1 ] Closed [ 6 ]

          People

            ifernandezcalvo Ivan Fernandez Calvo
            nancyrobertson2005 Nancy Robertson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: