Alternative to TransientProjectActionFactory for Build Pipeline
31 views
Skip to first unread message
Gustavo Henrique
unread,
Oct 4, 2016, 5:06:45 PM10/4/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Developers
Which extension point can I use as alternative to TransientProjectActionFactory for jobs using the Build Pipeline Plugin?
I have an old plugin that uses:
public class ProjectAction implements Action {
...
}
@Extension
public class ProjectActionFactory extends TransientProjectActionFactory {
@Override
public Collection<? extends Action> createFor(AbstractProject project) {
return Arrays.asList(new ProjectAction(project));
}
}
My jobMain.jelly doesn't works for jobs using Pipeline.
Daniel Beck
unread,
Oct 4, 2016, 5:15:09 PM10/4/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jenkin...@googlegroups.com
Isn't Build Pipeline Plugin just a view on top of independent jobs (connected by build causes, triggers, etc.)?
If so, there's nothing special about such a job. Maybe TransientActionFactory if there's Build Pipeline specific configuration such as a JobProperty, and check for that before creating actions (or in your actions, depending on how caching works exactly).
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Dev
On Tue, Oct 4, 2016 at 5:15 PM, Daniel Beck <m...@beckweb.net> wrote:
> Isn't Build Pipeline Plugin just a view on top of independent jobs (connected by build causes, triggers, etc.)?
I think Gustavo was referring to the Pipeline plugin suite, not the
Build Pipeline plugin.
The answer: use `TransientActionFactory<Run>` rather than
`TransientProjectActionFactory`. I guess you missed