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

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

XMLWordPrintable

      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

            Unassigned Unassigned
            shiming ShiMing Qu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: