new plugin/option to deploy on staging

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

new plugin/option to deploy on staging

Rey C
Hello guys

I want to create my first  plugin for jenkins,  my idea is create a plugin that deploy the current build on staging environment (please check the red icon on image).

Could  you please guide me about if you kwon an example/tutorial or base code put the button on this page and launch any action from this.


<a imageanchor="1" href="about:invalid#zClosurez" style="margin-left: 1em; margin-right: 1em;">deploy.png

thanks  and best regards.

Reinaldo C

--
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/ba27af49-2842-4c59-884c-512f159d20e7%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: new plugin/option to deploy on staging

Oleg Nenashev
Hi,

These page is being controlled by summary.jelly/groovy pages in Actions which you can attach to the build.

One of examples (maybe abit too heavy, but you can get an idea there):
Hopefully it helps,
Oleg

On Friday, August 16, 2019 at 7:07:31 PM UTC+2, Rey C wrote:
Hello guys

I want to create my first  plugin for jenkins,  my idea is create a plugin that deploy the current build on staging environment (please check the red icon on image).

Could  you please guide me about if you kwon an example/tutorial or base code put the button on this page and launch any action from this.


deploy.png

thanks  and best regards.

Reinaldo C

--
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/ba694eb5-98f0-420f-ba1b-ec7a7cf50100%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: new plugin/option to deploy on staging

Rey C
Thanks Oleg I will test those.

best regards 

Reinaldo

El jueves, 22 de agosto de 2019, 16:00:43 (UTC-5), Oleg Nenashev escribió:
Hi,

These page is being controlled by summary.jelly/groovy pages in Actions which you can attach to the build.

One of examples (maybe abit too heavy, but you can get an idea there):
  • <a href="https://github.com/jenkinsci/parameterized-trigger-plugin/blob/master/src/main/java/hudson/plugins/parameterizedtrigger/BuildInfoExporterAction.java" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fparameterized-trigger-plugin%2Fblob%2Fmaster%2Fsrc%2Fmain%2Fjava%2Fhudson%2Fplugins%2Fparameterizedtrigger%2FBuildInfoExporterAction.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE8iUB1v9_R0QwtJgIkcm2trYSNcQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fparameterized-trigger-plugin%2Fblob%2Fmaster%2Fsrc%2Fmain%2Fjava%2Fhudson%2Fplugins%2Fparameterizedtrigger%2FBuildInfoExporterAction.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE8iUB1v9_R0QwtJgIkcm2trYSNcQ&#39;;return true;">https://github.com/jenkinsci/parameterized-trigger-plugin/blob/master/src/main/java/hudson/plugins/parameterizedtrigger/BuildInfoExporterAction.java
  • <a href="https://github.com/jenkinsci/parameterized-trigger-plugin/blob/master/src/main/resources/hudson/plugins/parameterizedtrigger/BuildInfoExporterAction/summary.groovy" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fparameterized-trigger-plugin%2Fblob%2Fmaster%2Fsrc%2Fmain%2Fresources%2Fhudson%2Fplugins%2Fparameterizedtrigger%2FBuildInfoExporterAction%2Fsummary.groovy\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGihn8VnYaREaqDbA8Cdt3M16CeJw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fparameterized-trigger-plugin%2Fblob%2Fmaster%2Fsrc%2Fmain%2Fresources%2Fhudson%2Fplugins%2Fparameterizedtrigger%2FBuildInfoExporterAction%2Fsummary.groovy\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGihn8VnYaREaqDbA8Cdt3M16CeJw&#39;;return true;">https://github.com/jenkinsci/parameterized-trigger-plugin/blob/master/src/main/resources/hudson/plugins/parameterizedtrigger/BuildInfoExporterAction/summary.groovy
Hopefully it helps,
Oleg

On Friday, August 16, 2019 at 7:07:31 PM UTC+2, Rey C wrote:
Hello guys

I want to create my first  plugin for jenkins,  my idea is create a plugin that deploy the current build on staging environment (please check the red icon on image).

Could  you please guide me about if you kwon an example/tutorial or base code put the button on this page and launch any action from this.


deploy.png

thanks  and best regards.

Reinaldo C

--
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/f13d8066-74b4-4d99-a999-e794887b1f29%40googlegroups.com.