Hi, I was wondering if there's a way to do this with other elements. My plan is > to have clickable build badges that do server side things including kicking > off a build. I know I can post to a URL to trigger a build but that doesn't > cover it (unless I can define an endpoint that's connected to the badge > class?)
Jelly itself offers few features for realtime actions, but buttons are one of them (e.g. Apply buttons in Jenkins WebUI). You only need to implement POST request handlers on the master side (search for REST API in Jenkins), and then you will be able to invoke actions on master using standard buttons. Another related question: can a finished build register a new build as it's > downstream build? Since these badges would appear after build completion. Yes, you can modify actions and contents of finished builds. OTOH I would not advertise this way, because it may cause issues with plugins which do not expect it. At the contributor summit ate Jenkins World 2016 the current behavior was also mentioned as an obstacle for Pluggable Storage stories, so the behavior may change in one of the next Jenkins major releases (no confirmed plans / roadmap for them though). BR, Oleg суббота, 19 августа 2017 г., 0:49:17 UTC+2 пользователь Steven F написал: > > Hi, > > I know Jenkins provides some pre-defined buttons to call server side > methods. I was wondering if there's a way to do this with other elements. > My plan is to have clickable build badges that do server side things > including kicking off a build. I know I can post to a URL to trigger a > build but that doesn't cover it (unless I can define an endpoint that's > connected to the badge class?) > > Another related question: can a finished build register a new build as > it's downstream build? Since these badges would appear after build > completion. > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/ffce60c5-95fe-498c-8a40-9ae92e66c5bc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
