You are correct. I am only changing the description of the node, not the name.
-----Original Message----- From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Mandeville, Rob Sent: Thursday, June 14, 2012 10:03 AM To: 'jenkinsci-users@googlegroups.com' Subject: RE: How to update node description via a script? You might not want to change the name of the node, but rather a label, like db_ver_1 or db_ver_2. Changing node names may be confusing, and using labels allows you to specify jobs that only run on one or the other database. --Rob -----Original Message----- From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Stanley, Jason Sent: Thursday, June 14, 2012 9:59 AM To: jenkinsci-users@googlegroups.com Subject: RE: How to update node description via a script? Thanks I want to update the description of the node to reflect the database version that is installed. Example: Description: DB Version1 Run my job to upgrade the DB to version2. After job runs, DB is now version2 but description of node still says 1. I need to manually change this to 2. -----Original Message----- From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of grayaii Sent: Thursday, June 14, 2012 9:53 AM To: jenkinsci-users@googlegroups.com Subject: Re: How to update node description via a script? There is a way to *get *the node description: http://javadoc.jenkins-ci.org/hudson/model/Slave.html#getNodeDescription%28%29 http://javadoc.jenkins-ci.org/hudson/model/Slave.html#getNodeDescription%28%29 Here is a wiki page that I created that has a code snippet on how to get node information. (just to get your feet wet with groovy) https://wiki.jenkins-ci.org/display/JENKINS/Display+Information+About+Nodes But I don't know a way to *set *the description programatically after a node has been created. If you find out, please post. Out of curiosity, why do you want to update the description of the node? You can figure out where a particular job ran, and not only that, you can query the node to figure out what jobs it ran. -- View this message in context: http://jenkins.361315.n4.nabble.com/How-to-update-node-description-via-a-script-tp4631236p4631537.html Sent from the Jenkins users mailing list archive at Nabble.com. The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle & Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s), or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify Litle & Co. immediately by replying to this message and then promptly deleting it and your reply permanently from your computer.