Groovy script the extra job name with path

11 views
Skip to first unread message

Jeeva Chelladhurai

unread,
Oct 16, 2017, 12:29:56 PM10/16/17
to jenkins...@googlegroups.com
Hello All,

I have a small groovy script that can iterate thru the jobs and folders, and print the details as listed shown below

hudson.model.FreeStyleProject@3a0ddf4f[Project/SubProject/Service]

However I would like to just extract Project/SubProject/Service, what is the right getter function to get his detail?

Thanks,
Jeeva

--
Jeeva K S Chelladhurai

Devin Nusbaum

unread,
Oct 16, 2017, 12:33:12 PM10/16/17
to jenkins...@googlegroups.com
I think the method you want is Item#getFullName.

--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAK5CbZXQgbLJug5DSQ2oQTj9V9v0HSs%3Dm2vthXxKFTwwLNQt5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages