how to get name of project?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to get name of project?

sanghamitra-2
Hi All,

I am writing a plugin, where i need to get the name of current job/project in my java code. How can I do this?

Thanks,
Sanghamitra
Reply | Threaded
Open this post in threaded view
|

RE: how to get name of project?

Greg Moore-5

isn't this as simple as reading the environment of the running job and
getting the value of BUILD_TAG or JOB_NAME?
see
http://wiki.hudson-ci.org/display/HUDSON/Building+a+software+project 

I haven't done any hudson extensions but maybe what you are looking for
in the Class AbstractItem. Look in the javadocs at
https://hudson.dev.java.net/nonav/javadoc/ I found this in only a couple
minutes so it may be completely wrong. I would look for job or project
and go from there.

Greg.


> -----Original Message-----
> From: sanghamitra [mailto:[hidden email]]
> Sent: Thursday, July 09, 2009 12:46 AM
> To: [hidden email]
> Subject: how to get name of project?
>
>
> Hi All,
>
> I am writing a plugin, where i need to get the name of current
job/project
> in my java code. How can I do this?
>
> Thanks,
> Sanghamitra
> --
> View this message in context:
http://www.nabble.com/how-to-get-name-of-
> project--tp24405657p24405657.html
> Sent from the Hudson users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]