00:00:00.190 [ssh-agent] Started.
      00:00:00.769 $ ssh-add "/jenkins/ci/jobs/Deploy Wiki/workspace@tmp/private_key_4000016041972898826.key"
      00:00:00.823 rm: cannot remove '/jenkins/ci/jobs/Deploy': No such file or directory
      00:00:00.841 rm: cannot remove 'Wiki/workspace@tmp/askpass_3118076361212557.sh': No such file or directory
      00:00:00.848 ERROR: Failed to run ssh-add
      

          [JENKINS-42093] Can't work in workspace with spaces

          Igor Pashev created issue -

          Thomas de Grenier de Latour added a comment - proposed fix: https://github.com/jenkinsci/ssh-agent-plugin/pull/19
          Thomas Tree made changes -
          Priority Original: Minor [ 4 ] New: Critical [ 2 ]

          Thomas Tree added a comment - - edited

          Hello,

          this bug is very critical for us. We have some Projects Named with spaces and at the moment the projects are not working.

           

           

           

          Started by GitLab push by tomcat667
          [EnvInject] - Loading node environment variables.
          Building in workspace /var/lib/jenkins/jobs/Test-Web (QA)/workspace
          [ssh-agent] Looking for ssh-agent implementation...
          [ssh-agent]   Exec ssh-agent (binary ssh-agent on a remote machine)
          $ ssh-agent
          SSH_AUTH_SOCK=/tmp/ssh-r4W8JcH8Q9kJ/agent.20618
          SSH_AGENT_PID=20621
          [ssh-agent] Started.
          $ ssh-add "/var/lib/jenkins/jobs/Test-Web (QA)/workspace@tmp/private_key_6639950023827103741.key"
          rm: cannot remove ‘/var/lib/jenkins/jobs/Test-Web’: No such file or directory
          rm: cannot remove ‘(QA)/workspace@tmp/askpass_7451015691127031249.sh’: No such file or directory
          ERROR: Failed to run ssh-add
          Checking console output
          Recording test results
          

           

          Thomas Tree added a comment - - edited Hello, this bug is very critical for us. We have some Projects Named with spaces and at the moment the projects are not working.       Started by GitLab push by tomcat667 [EnvInject] - Loading node environment variables. Building in workspace / var /lib/jenkins/jobs/Test-Web (QA)/workspace [ssh-agent] Looking for ssh-agent implementation... [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) $ ssh-agent SSH_AUTH_SOCK=/tmp/ssh-r4W8JcH8Q9kJ/agent.20618 SSH_AGENT_PID=20621 [ssh-agent] Started. $ ssh-add "/ var /lib/jenkins/jobs/Test-Web (QA)/workspace@tmp/private_key_6639950023827103741.key" rm: cannot remove ‘/ var /lib/jenkins/jobs/Test-Web’: No such file or directory rm: cannot remove ‘(QA)/workspace@tmp/askpass_7451015691127031249.sh’: No such file or directory ERROR: Failed to run ssh-add Checking console output Recording test results  
          Thomas Tree made changes -
          Attachment New: ssh-agent.hpi [ 36556 ]

          Thomas Tree added a comment -

          we have build an ssh-agent plugin with the information from github. thx to thomasgl-orange  

           for all with the same problem, feel free to download the fixed ssh agent.hpi

           

          you can upload easy to jenkins

          Thomas Tree added a comment - we have build an ssh-agent plugin with the information from github. thx to  thomasgl-orange     for all with the same problem, feel free to download the fixed ssh agent.hpi   you can upload easy to jenkins
          Jesse Glick made changes -
          Assignee New: Thomas de Grenier de Latour [ tom_gl ]
          Jesse Glick made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Code changed in jenkins
          User: Thomas de Grenier de Latour
          Path:
          src/main/java/com/cloudbees/jenkins/plugins/sshagent/exec/ExecRemoteAgent.java
          src/test/java/com/cloudbees/jenkins/plugins/sshagent/SSHAgentBase.java
          src/test/java/com/cloudbees/jenkins/plugins/sshagent/SSHAgentBuildWrapperTest.java
          http://jenkins-ci.org/commit/ssh-agent-plugin/9b6edc2e4b1411074acec96fe684e1d08bca0c17
          Log:
          JENKINS-42093 - fix quoting in askpass script

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Thomas de Grenier de Latour Path: src/main/java/com/cloudbees/jenkins/plugins/sshagent/exec/ExecRemoteAgent.java src/test/java/com/cloudbees/jenkins/plugins/sshagent/SSHAgentBase.java src/test/java/com/cloudbees/jenkins/plugins/sshagent/SSHAgentBuildWrapperTest.java http://jenkins-ci.org/commit/ssh-agent-plugin/9b6edc2e4b1411074acec96fe684e1d08bca0c17 Log: JENKINS-42093 - fix quoting in askpass script
          Jesse Glick made changes -
          Labels New: regression

            tom_gl Thomas de Grenier de Latour
            ip1981 Igor Pashev
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: