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

          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

          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) added a comment - Linked to  https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/354

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

              Created:
              Updated: