The best I can think of is to add a hidden reconfigurable property that
stores a UUID...

It would need some guards, eg

If a job is copied, generate a new UUID

If a job is modified by POST of the config.xml, generate a new UUID if
there is already a different UUID for a job in the instance.

Not unpossible but a bit of a pain

- Stephen

On Tuesday, 23 July 2013, Eric Pyle wrote:

>  I think Kevin is right about this. The only way I could see to make a
> connection is to catch the event when a job is renamed. It does throw up an
> "Are you sure" alert, so I wonder if you could piggyback on that code in
> your extension, and send an update to your database. Looks like
> hudson/model/Job/rename.jelly may be the spot, though I am not really up on
> how things like this work behind the scenes.
>
> Regards,
> Eric
>
>
> On 7/23/2013 1:51 PM, Kevin Fleming (BLOOMBERG/ 731 LEXIN) wrote:
>
>  I don't believe that such a data element exists. In Jenkins, the project
> name is the key for everything.
>
> ----- Original Message -----
> From: [email protected] <javascript:_e({}, 'cvml',
> '[email protected]');>
> To: [email protected] <javascript:_e({}, 'cvml',
> '[email protected]');>
> At: Jul 23 2013 13:09:50
>
> Hello,
>
> Does any one know of a place or a field in Jenkins that is static and
> unique for each project in the projects list in Jenkins?
>
> Is there a plugin out there that would give me a unique identifier for the
> project?
>
> The project name itself is not unique due to the fact that if you rename
> the job all of the data about the job is renamed without and effictively
> leaves no trace of the old project name (that I know of). When that happens
> my database plugin (that I am almost finished developing) starts over as if
> it is a new job. I'd like to continue trending the info with the new name.
>
>
>
>
> For example -
>
> I have a table full of the API/XML for ProjectX
> When I rename ProjectX to ProjectY Jenkins see's that ProjectX no longer
> exists and renames the entire job.
>
> If I am keeping a history of all of the API/XML and a job is renamed then I
> lost track of the history.
>
> What I would need is something like -
>
> Project# 1234
> ProjectName *ProjectX*
> Build# 45
>
> Then when it is renamecd
>
> Project# 1234
> ProjectName* ProjectY*
> Build# 45
>
>
>
> I'm currently scraping the data off of of this URL to grab project
> information
>
> http://<JenkinsServer>/view/All/cc.xml
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:_e({},
> 'cvml', '[email protected]');>.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>   --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:_e({},
> 'cvml', '[email protected]');>.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:_e({},
> 'cvml', 'jenkinsci-users%[email protected]');>.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


-- 
Sent from my phone

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to