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

'Restrict where this promotion process can be run' doesn't work for new groovy process

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • groovy-plugin
    • None
    • Hudson Groovy builder: 1.20
      promoted builds plugin: 2.17
      Jenkins: 1.583
      Groovy: groovy-2.4.0-beta-2
      host: Windows 2013R2 Server

      I'm using 'Restrict where this process can be run' option together with 'Execute system groovy script' as an action.

      The script executes on the specific host, but when I create a groovy process:

       
      cmd = ("ipconfig /all").execute()
      cmd.consumeProcessOutput(out, err)
      cmd.waitFor()
      
      println out
      println err
      
      

      The new created process is running on the Jenkins host, not on the required node.

          [JENKINS-26880] 'Restrict where this promotion process can be run' doesn't work for new groovy process

          Pawel Grzegrzolka created issue -
          Pawel Grzegrzolka made changes -
          Component/s New: groovy-plugin [ 15549 ]
          Component/s Original: promoted-builds-plugin [ 15567 ]
          Description Original: I'm using 'Restrict where this promotion precess can be run' option together with 'Execute system groovy script' as an action.

          The script executes on the specific host, but when I create a groovy process:

          {noformat}
          cmd = ("ipconfig /all").execute()
          cmd.consumeProcessOutput(out, err)
          cmd.waitFor()

          println out
          println err

          {noformat}

          The new created process is running on the Jenkins host, not on the required node.
          New: I'm using 'Restrict where this process can be run' option together with 'Execute system groovy script' as an action.

          The script executes on the specific host, but when I create a groovy process:

          {noformat}
          cmd = ("ipconfig /all").execute()
          cmd.consumeProcessOutput(out, err)
          cmd.waitFor()

          println out
          println err

          {noformat}

          The new created process is running on the Jenkins host, not on the required node.
          Pawel Grzegrzolka made changes -
          Environment Original: promoted builds plugin: 2.17
          Jenkins: 1.583
          Groovy: groovy-2.4.0-beta-2
          host: Windows 2013R2 Server
          New: Hudson Groovy builder: 1.20
          promoted builds plugin: 2.17
          Jenkins: 1.583
          Groovy: groovy-2.4.0-beta-2
          host: Windows 2013R2 Server
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 161057 ] New: JNJira + In-Review [ 180557 ]

            Unassigned Unassigned
            pawelgrz Pawel Grzegrzolka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: