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

Expose $NODE_NAME as part of the slave setup to help itself to be self-identifiable

    Details

    • Similar Issues:

      Description

      It would be very beneficial for each Jenkins node to be self-identifiable, during the setup init() step. The reason is because we also want to run some maintenance/init task before the node can be considered to be added onto Jenkins. So as part of the "connecting/reconnecting" step, it is important for the node to be self-identify and know who is who without running any job to obtain the $NODE_NAME.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Stefan Wolf
          Path:
          src/main/java/org/jenkinsci/plugins/slave_setup/SetupDeployer.java
          http://jenkins-ci.org/commit/slave-setup-plugin/8a70760bd883212cee798047dd7d49ba4ebd7a08
          Log:
          [FIXED JENKINS-24107] Expose NODE_TO_SETUP_NAME and NODE_TO_SETUP_LABELS for prepare and setup scripts

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stefan Wolf Path: src/main/java/org/jenkinsci/plugins/slave_setup/SetupDeployer.java http://jenkins-ci.org/commit/slave-setup-plugin/8a70760bd883212cee798047dd7d49ba4ebd7a08 Log: [FIXED JENKINS-24107] Expose NODE_TO_SETUP_NAME and NODE_TO_SETUP_LABELS for prepare and setup scripts
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Stefan Wolf
          Path:
          src/main/java/org/jenkinsci/plugins/slave_setup/SetupDeployer.java
          http://jenkins-ci.org/commit/slave-setup-plugin/dc690aee1d97d6bb102c446bad20db43c0bbc86e
          Log:
          Merge pull request #2 from wolfs/env-vars

          [FIXED JENKINS-24107] Expose NODE_TO_SETUP_NAME and NODE_TO_SETUP_LABELS

          Compare: https://github.com/jenkinsci/slave-setup-plugin/compare/8b0dc7256f97...dc690aee1d97

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stefan Wolf Path: src/main/java/org/jenkinsci/plugins/slave_setup/SetupDeployer.java http://jenkins-ci.org/commit/slave-setup-plugin/dc690aee1d97d6bb102c446bad20db43c0bbc86e Log: Merge pull request #2 from wolfs/env-vars [FIXED JENKINS-24107] Expose NODE_TO_SETUP_NAME and NODE_TO_SETUP_LABELS Compare: https://github.com/jenkinsci/slave-setup-plugin/compare/8b0dc7256f97...dc690aee1d97

            People

            • Assignee:
              kohsuke Kohsuke Kawaguchi
              Reporter:
              samxiao Sam Xiao
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: