BuildFlow plugin and @Grab

50 views
Skip to first unread message

Schalk Cronjé

unread,
Jun 17, 2013, 4:54:38 AM6/17/13
to jenkins...@googlegroups.com
Has anyone managed to get @Grab annotation to work inside Build Flow plugin?  Or is this simply not possible to due to classloader issues?

My idea was to use the RESTBuilder inside Groovy's http-builder to query arbitrary builds in on Jenkins for information in order to pass parameters to builds in the build flow itself. Currently using @Grab to pull http-builder down will fail.


nicolas de loof

unread,
Jun 17, 2013, 5:00:39 AM6/17/13
to jenkins...@googlegroups.com
Even you find some way to get this to work I wouldn't recommend.
build-flow DSL is for sure implemented in groovy, but this is an orchestration DSL, for this use case use the extension point with a dedicated plugin to contribute such features


2013/6/17 Schalk Cronjé <ysb...@gmail.com>
Has anyone managed to get @Grab annotation to work inside Build Flow plugin?  Or is this simply not possible to due to classloader issues?

My idea was to use the RESTBuilder inside Groovy's http-builder to query arbitrary builds in on Jenkins for information in order to pass parameters to builds in the build flow itself. Currently using @Grab to pull http-builder down will fail.



--
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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Schalk Cronjé

unread,
Jun 17, 2013, 6:29:24 AM6/17/13
to jenkins...@googlegroups.com
I would prefer not to use an extension point at this time. I want to prototype something up and having to learn to how to write an extension point, might just take too much time up, especially given AFAIK documentation being pretty sparse on the topic.

nicolas de loof

unread,
Jun 17, 2013, 9:44:55 AM6/17/13
to jenkins...@googlegroups.com
right, but then don't complain if this get's broken in future release ;)


2013/6/17 Schalk Cronjé <ysb...@gmail.com>

Schalk W. Cronjé

unread,
Jun 17, 2013, 3:28:55 PM6/17/13
to jenkins...@googlegroups.com
Absolutely.


--
Schalk W. Cronjé
[Sent from mobile phone]
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/2XFDB5g7O7A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages