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

"bat" step in an external workspace is not ran in it.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • external-workspace-manager 1.1.2
      Jenkins

      When running a "bat" step in an external workspace as such:

       

      node('Windows'){
      stage('Stage 3. Test Windows'){
      exws (extWorkspace) {
      bat 'type linux.txt'
      }
      }
      }

       

      the bat command is ran in my C:\ folder. 

       

      This does not happen when running a powershell step. Could it be linked to the fact that UNC paths are not handled by CMD? If so, perhaps we should offer the possibility to map a drive to the network folder that is the external workspace? 

            alexsomai Alexandru Somai
            avanacker Alexis Vanacker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: