You need to implement LastBuildAction and then override this method in your
existing action:
@Override
public Collection<? extends Action> getProjectActions() {
return Collections.singleton(new
AggregatedTrendAction(owner.getParent()));
}
Example:
https://github.com/jenkinsci/warnings-ng-plugin/blob/master/src/main/java/io/jenkins/plugins/analysis/core/model/AggregationAction.java#L66
<https://github.com/jenkinsci/warnings-ng-plugin/blob/master/src/main/java/io/jenkins/plugins/analysis/core/model/AggregationAction.java#L66>
https://github.com/jenkinsci/warnings-ng-plugin/blob/master/src/main/java/io/jenkins/plugins/analysis/core/model/AggregatedTrendAction.java
<https://github.com/jenkinsci/warnings-ng-plugin/blob/master/src/main/java/io/jenkins/plugins/analysis/core/model/AggregatedTrendAction.java>
> Am 15.05.2019 um 16:05 schrieb selva vignesh <[email protected]>:
>
> Hi All,
> I have create Build Level Action and its successfully working. I want to
> create Project Level Action so that i have created ProjectAction and done
> what ever i want.
> But when Jenkins load, creating no project action bar for all Post,Pre Action
> i have create.
> Can anyone please let me know how to done this one.
> Thanks in Advance.
>
> --
> 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]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/a1a2249f-9cc1-4ef4-97aa-83024387ae9e%40googlegroups.com
>
> <https://groups.google.com/d/msgid/jenkinsci-dev/a1a2249f-9cc1-4ef4-97aa-83024387ae9e%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout
> <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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/9B317300-9002-429B-8BF1-E2C172A45CF3%40gmail.com.
For more options, visit https://groups.google.com/d/optout.