How to add job-status(bubbles) to a new column? (Extend Jenkins)

Hello,

I want to extend Jenkins with Java, Jelly etc. ...

I already have a new view and I know how to add a new column. But I don't know how to add jobs to it.
How can I add jobs to a new column with code?

Thanks for your help! :)

Best Regards
Stevie
 

Machareder

Bekanntes Mitglied
Hi Stevie,

this is a German speaking forum ;) <- Question and Answer are normally in German
I think I can not help you with your Problem... but maybe you can post your code and some other guy help you
 
Hallo Machareder,

ich war so auf Englisch fixiert, das ich es überhaupt nicht bemerkt habe..... Sorry :)

Hier das ganze nochmal auf deutsch:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------

Ich möchte gerne Jenkins mit einem eigenen Plugin erweiteren (Sprachen Java, Jelly, ....)

Ich habe bereits einen neuen VIEW erstellt und ich weiß wie ich eine neue Spalte erzeugen kann. Jedoch weiß ich nicht, wie ich in dieser Spalte den JOB STATUS (rote/grüne/blaue Bubbles) anzeigen lassen kann.
Wie kann ich dies mit Code bewältigen? Ich habe das Netz bereits nach Tutorials durchsucht, aber erfolglos....

Ich hoffe ich finde jemanden der sich mit Jenkins Extensions auskennt :)

Vielen Dank für eure Hilfe!

Beste Grüße
Stevie
 
Ich habe eine Lösung gefunden :)

Hier mein Code:

(.java)
------------------------------------------------------------------------
public String getStatusIcon(Job job) {
return job.getBuildStatusUrl();
}
------------------------------------------------------------------------

(.jelly)
------------------------------------------------------------------------
<j:jelly xmlns:j="jelly:core">
<j:set var="status_icon" value="${it.getStatusIcon(job)}"/>
<td><a class="model-link" href="job/${job_name}/"><img src="${resURL}/images/16x16/${status_icon}"/></a></td>
</j:jelly>


Thanks for Help!

Best Regards
StevieOnDrums
 

Ähnliche Java Themen

Neue Themen


Oben