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

Need the plugin could be used with Windows agents

      When we create a pipeline with this code:

      pipeline {

      agent
      {
      dockerfile {
      label 'Docker_POC__Windows2016_Node1'
      }
      }

      stages {
      stage('build') {
      steps {
      checkout scm
      bat 'set'
      }
      }
      }
      }

       

      On a windows server 2016 we obtain this error:

      Caused: java.io.IOException: Cannot run program "nohup" (in directory "c:\cbjenkins-slave1\workspace\CBJ_Docker_POC\dotNetonWindows2016"): CreateProcess error=2, The system cannot find the file specified

       

      Looks like the plugin is not prepared to works with Windows.

      We would like that the plugin has support for windows machines.

          [JENKINS-47703] Need the plugin could be used with Windows agents

          Javier Raez created issue -

          Might be a duplicate of JENKINS-36776

          Kalle Niemitalo added a comment - Might be a duplicate of JENKINS-36776

          Javier Raez added a comment -

          Yes, it's the same issue, you could close that.

           

          Thanks

          Javier Raez added a comment - Yes, it's the same issue, you could close that.   Thanks

          Javier Raez added a comment -

          Javier Raez added a comment - The issue is duplicated with  https://issues.jenkins-ci.org/browse/JENKINS-36776
          Javier Raez made changes -
          Link New: This issue blocks JENKINS-36776 [ JENKINS-36776 ]
          Javier Raez made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

          Connected to JENKINS-34454 as well.

          I also just tried to use docker on windows with the nice agent-syntax. But it is not working

          It should not be that hard, I guess as there is not much difference between docker for windows and docker for linux from command line syntax.

          Michael Brunner added a comment - Connected to JENKINS-34454 as well. I also just tried to use docker on windows with the nice agent-syntax. But it is not working It should not be that hard, I guess as there is not much difference between docker for windows and docker for linux from command line syntax.

          Actually related to pipeline model definition

          Joseph Petersen (old) added a comment - Actually related to pipeline model definition
          Joseph Petersen (old) made changes -
          Assignee New: Joseph Petersen (old) [ casz ]
          Resolution Original: Duplicate [ 3 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          Joseph Petersen (old) made changes -
          Component/s New: pipeline-model-definition-plugin [ 21706 ]
          Component/s Original: docker-workflow-plugin [ 20625 ]

            jetersen Joseph Petersen
            jraezrus Javier Raez
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: