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

Passing ${NODE_NAME} as Node Parameter to downstream job not possible on master

XMLWordPrintable

      We use the node label parameter plugin to pass the name of the node where the compile of a software project ran to the downstream jobs to build installlers, apply labels on the SCM and so on (to use the same workspace). Unfortunately this does not work if the compile job runs on master because ${NODE_NAME} is empty there. Is it possible to fix this somehow by having master as default if the passed string is empty f.i.? Or is there some other environment variable I could use for this purpose? If the master job runs on master the downstream jobs will wait forever looking for a node with label ""...

            domi Dominik Bartholdi
            bruce Dirk Kuypers
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: