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

Execute shell in shared library code is inconsistent with execute it in Jenkinsfile directly

    Details

    • Similar Issues:

      Description

      1. set an agent in a stage to specify a slave, agent { label 'test-slave' }
      2. run shell directly in jenkinsfile, sh "hostname", it shows that it's in that slave
      3. run shell "hostname" by execute code in a shared library, it shows that it's in Jenkins master

        Attachments

          Activity

          Hide
          abayer Andrew Bayer added a comment -

          Please include a full reproduction case, with both the Jenkinsfile and shared library.

          Show
          abayer Andrew Bayer added a comment - Please include a full reproduction case, with both the Jenkinsfile and shared library.

            People

            • Assignee:
              Unassigned
              Reporter:
              shiming ShiMing Qu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: