How to create projectAction

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to create projectAction

selva vignesh
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/a1a2249f-9cc1-4ef4-97aa-83024387ae9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to create projectAction

Ulli Hafner
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:



Am 15.05.2019 um 16:05 schrieb selva vignesh <[hidden email]>:

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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/a1a2249f-9cc1-4ef4-97aa-83024387ae9e%40googlegroups.com.
For more options, visit 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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: How to create projectAction

Markus Winter
In reply to this post by selva vignesh
Create your own TransientActionFactory to inject the action to all projects.

On 15.05.2019 16:05, selva vignesh wrote:
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/a1a2249f-9cc1-4ef4-97aa-83024387ae9e%40googlegroups.com.
For more options, visit 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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/907c162a-91bd-52e5-4b3b-1fb68421d69c%40gmx.de.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to create projectAction

selva vignesh
Yes... I have transiantAction Factory. Problem is I have 2 post Action so i have called the Project Action class on both. So both Action Url are shown in UI.
I want to make it this only one for Project
Thanks

On Wed, May 15, 2019 at 7:45 PM Markus Winter <[hidden email]> wrote:
Create your own TransientActionFactory to inject the action to all projects.

On 15.05.2019 16:05, selva vignesh wrote:
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/a1a2249f-9cc1-4ef4-97aa-83024387ae9e%40googlegroups.com.
For more options, visit 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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/907c162a-91bd-52e5-4b3b-1fb68421d69c%40gmx.de.
For more options, visit 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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAOVVkpkQFZ3b22wrcsVFQ%3D7R9z%2BznZmpOBeoHh6-1eD0gqVJwg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.