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

Can't work in workspace with spaces

    XMLWordPrintable

Details

    Description

      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
      

      Attachments

        Issue Links

          Activity

            tom_gl Thomas de Grenier de Latour added a comment - proposed fix: https://github.com/jenkinsci/ssh-agent-plugin/pull/19
            tomcat667 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
            

             

            tomcat667 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  
            tomcat667 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

            tomcat667 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

            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_issue_link 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

            Code changed in jenkins
            User: Jesse Glick
            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/2dee08015ebd9575926282f1f2447a0fe1e55496
            Log:
            Merge pull request #19 from thomasgl-orange/quote-shell-variables

            JENKINS-42093 - fix quoting in askpass script

            Compare: https://github.com/jenkinsci/ssh-agent-plugin/compare/10a2dff6e03d...2dee08015ebd

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick 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/2dee08015ebd9575926282f1f2447a0fe1e55496 Log: Merge pull request #19 from thomasgl-orange/quote-shell-variables JENKINS-42093 - fix quoting in askpass script Compare: https://github.com/jenkinsci/ssh-agent-plugin/compare/10a2dff6e03d...2dee08015ebd

            People

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

              Dates

                Created:
                Updated:
                Resolved: