tried and get UnsopportedOperationException because getActions of 
AbstractProject class returns unmodifiable list

@SuppressWarnings("deprecation")
    @Override
    public List<Action> getActions() {
        // add all the transient actions, too
        List<Action> actions = new Vector<Action>(super.getActions());
        actions.addAll(transientActions);
        // return the read only list to cause a failure on plugins who try 
to add an action here
        return Collections.unmodifiableList(actions);
    }

среда, 27 августа 2014 г., 17:52:45 UTC+4 пользователь Jesse Glick написал:
>
> On Wed, Aug 27, 2014 at 7:35 AM,  <[email protected] <javascript:>> 
> wrote: 
> > the problem is that ExtraInfoAction is always recreated and not 
> persisted 
>
> Yes, this method intentionally creates transient actions. 
>
> > could you please advice how to save extra data per project? 
>
> job.addAction(…) 
>

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

Reply via email to