Jenkins job ID

1,656 views
Skip to first unread message

CORNELIA SARBU

unread,
Apr 11, 2016, 9:44:17 AM4/11/16
to Jenkins Developers
HI,
 I 'm working on a jenkins plugin and I have to create a mapping between a jenkins job and an external file. I have a collection of files, each file associated to one or more jenkins jobs.
 Do you know if a job (not a build) has an unique id ? I'm thinking to use an Id to realize the mapping, and this without specifying it in the job's name.
I was checking the jenkins variables, but I only found BUILD_ID.

Thank you
Cornelia

Daniel Beck

unread,
Apr 11, 2016, 9:56:14 AM4/11/16
to jenkin...@googlegroups.com
You could use the unique-id-plugin.
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/7a3579e8-caa7-4e2a-81bd-c5ce99d899f3%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

CORNELIA SARBU

unread,
Apr 11, 2016, 10:37:59 AM4/11/16
to Jenkins Developers, m...@beckweb.net
Thank you Daniel for your advice. I'll try it.

CORNELIA SARBU

unread,
Sep 15, 2016, 9:45:13 AM9/15/16
to Jenkins Developers

Hi Daniel,

I saw unique -plugin -id requires jenkins core 1.615 . We have an older Jenkins version.
I've created my own plugin to keep this info , by extending JobProperty class. 

But now I have another question related to the field that should be field in position .
right now in the ob configuration page I can see the elements if the Order bellow:
1- Project Name
2- Descripton
3- discard Old builds
4- Block Build if certain jobs are runninc
5- Project Number(ID) - this was added by me

I would like to change a little bit the order , to have Project Number(ID) on the second position, just bellow the Project Name



Thank you !
Reply all
Reply to author
Forward
0 new messages