Discussion:
Where's the high level design?
Paul Smith
2018-11-27 08:55:50 UTC
Permalink
I am trying to understand how the various object classes work together to perform a build but am struggling - is there a high level overview somewhere?

My motivation is that I have created an initial interface to GitLab CI webhooks to allow GitLab CI jobs to report build status on the same Jenkins dashboards as native Jenkins jobs but I have two issues left to solve:


1. My code works but it could probably be tidied up if I understood the design of the native jobs better
2. I cannot get the 'estimated completion' times to work as I cannot hook the Permalinks in a way that works nicely.

Thnaks,
Paul DS.


Sent from Outlook<http://aka.ms/weboutlook>
--
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-dev+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/VI1P192MB025557A40FA6C3B7F350AA8DC8D00%40VI1P192MB0255.EURP192.PROD.OUTLOOK.COM.
For more options, visit https://groups.google.com/d/optout.
Jesse Glick
2018-11-27 22:00:38 UTC
Permalink
Post by Paul Smith
I am trying to understand how the various object classes work together to perform a build but am struggling - is there a high level overview somewhere?
Not really. If there were, it would probably go here:

https://jenkins.io/doc/developer/model/
Post by Paul Smith
[…] allow GitLab CI jobs to report build status on the same Jenkins dashboards as native Jenkins jobs
Only a handful of people would ever implement something like this, and
there are no examples among frequently used or well supported plugins.
The closest I can think of would be `external-monitor-job` and
`build-publisher`. There is no very good way of doing this.
Post by Paul Smith
I cannot get the 'estimated completion' times to work as I cannot hook the Permalinks in a way that works nicely.
Not sure what you are trying to do with permalinks, but
`Job.getEstimatedDuration` could be overridden I suppose.
--
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-dev+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3S5V2Hhes7YcKVStvnW%2BsBfsL7rz-2ZwY9UznfRt7yWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Paul Smith
2018-11-29 13:49:22 UTC
Permalink
Jesse,

Thanks for the response. No need for a further response from you but to answer your questions...

- I have looked at the external-monitor-job but not build-publisher so will see if there is anything useful to me there.
- Permalinks seem to be how the 'getEstimatedDuration' is implemented and I was trying to get my head around whether I could piggy back off existing code but I appreciate that I could simply override this code if required.

Thanks for the info,
Regards,
Paul DS.

-----Original Message-----
From: jenkinsci-***@googlegroups.com <jenkinsci-***@googlegroups.com> On Behalf Of Jesse Glick
Sent: 27 November 2018 22:01
To: jenkinsci-***@googlegroups.com
Subject: Re: Where's the high level design?
Post by Paul Smith
I am trying to understand how the various object classes work together to perform a build but am struggling - is there a high level overview somewhere?
Not really. If there were, it would probably go here:

https://jenkins.io/doc/developer/model/
Post by Paul Smith
[…] allow GitLab CI jobs to report build status on the same Jenkins
dashboards as native Jenkins jobs
Only a handful of people would ever implement something like this, and there are no examples among frequently used or well supported plugins.
The closest I can think of would be `external-monitor-job` and `build-publisher`. There is no very good way of doing this.
Post by Paul Smith
I cannot get the 'estimated completion' times to work as I cannot hook the Permalinks in a way that works nicely.
Not sure what you are trying to do with permalinks, but `Job.getEstimatedDuration` could be overridden I suppose.

--
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-dev+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3S5V2Hhes7YcKVStvnW%2BsBfsL7rz-2ZwY9UznfRt7yWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
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-dev+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/VI1P192MB0255925486FA1A71F96F6B31C8D20%40VI1P192MB0255.EURP192.PROD.OUTLOOK.COM.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...