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.

Reply via email to