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

Listener for slave creation/deletion/update.

    XMLWordPrintable

Details

    Description

      Right now, there is no easy way to detect computer was created/deleted/updated.

      Detecting the deletion/rename is needed by cloud-stats-plugin to track the time slave was used.

      Attachments

        Issue Links

          Activity

            Code changed in jenkins
            User: Oliver Gondža
            Path:
            core/src/main/java/hudson/model/Computer.java
            core/src/main/java/jenkins/model/NodeListener.java
            core/src/main/java/jenkins/model/Nodes.java
            test/src/test/java/jenkins/model/NodeListenerTest.java
            http://jenkins-ci.org/commit/jenkins/f21fe5450ba82b811abe947d6900cec255b2dba9
            Log:
            [FIXED JENKINS-33780] Introduce NodeListener

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: core/src/main/java/hudson/model/Computer.java core/src/main/java/jenkins/model/NodeListener.java core/src/main/java/jenkins/model/Nodes.java test/src/test/java/jenkins/model/NodeListenerTest.java http://jenkins-ci.org/commit/jenkins/f21fe5450ba82b811abe947d6900cec255b2dba9 Log: [FIXED JENKINS-33780] Introduce NodeListener

            Code changed in jenkins
            User: Oliver Gondža
            Path:
            core/src/main/java/jenkins/model/NodeListener.java
            http://jenkins-ci.org/commit/jenkins/3ef19cc1d37b0e3f3fe439c1af464a2885b2f7b4
            Log:
            JENKINS-33780 Catch all throwables from implementations

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: core/src/main/java/jenkins/model/NodeListener.java http://jenkins-ci.org/commit/jenkins/3ef19cc1d37b0e3f3fe439c1af464a2885b2f7b4 Log: JENKINS-33780 Catch all throwables from implementations

            Code changed in jenkins
            User: Oliver Gondža
            Path:
            core/src/main/java/hudson/model/Computer.java
            core/src/main/java/jenkins/model/NodeListener.java
            core/src/main/java/jenkins/model/Nodes.java
            test/src/test/java/jenkins/model/NodeListenerTest.java
            test/src/test/resources/hudson/model/node.xml
            http://jenkins-ci.org/commit/jenkins/1444ee6fd89652bf101257c6ae532fd2b15eddb1
            Log:
            Merge pull request #2314 from olivergondza/node-listener

            [FIXED JENKINS-33780] Introduce listener for slave creation/update/deletion

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: core/src/main/java/hudson/model/Computer.java core/src/main/java/jenkins/model/NodeListener.java core/src/main/java/jenkins/model/Nodes.java test/src/test/java/jenkins/model/NodeListenerTest.java test/src/test/resources/hudson/model/node.xml http://jenkins-ci.org/commit/jenkins/1444ee6fd89652bf101257c6ae532fd2b15eddb1 Log: Merge pull request #2314 from olivergondza/node-listener [FIXED JENKINS-33780] Introduce listener for slave creation/update/deletion
            integer Kanstantsin Shautsou added a comment - - edited

            Without relying on new core you can expose completion method and it could be called from Slave itself just before _terminate (or even retentionStrategies or launchers - both full of taskCompleted and etc methods) after slave did own custom stuff. Please expose this method and fix mess of releases from wrong branch.

            integer Kanstantsin Shautsou added a comment - - edited Without relying on new core you can expose completion method and it could be called from Slave itself just before _terminate (or even retentionStrategies or launchers - both full of taskCompleted and etc methods) after slave did own custom stuff. Please expose this method and fix mess of releases from wrong branch.

            People

              olivergondza Oliver Gondža
              olivergondza Oliver Gondža
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: