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.

Reply via email to