Wednesday, 11 September 2013

Display Name of the current opened job

Display Name of the current opened job

The code below displays a list of all jobs in hudson:
def projectlist = hudson.model.Hudson.instance
projectlist.getItems(hudson.model.Project).each
{
job ->println(job.displayName)
}
How can I get the name of the current job only?

No comments:

Post a Comment