Jenkins init groovy script to upload custom plugin

9 views
Skip to first unread message

Nageswara Rao Palukuri Venkata

unread,
May 15, 2019, 10:37:40 PM5/15/19
to Jenkins Users
How can we upload a custom plugin file using groovy init script?
Is there any init groovy script is available to upload custom plugin veracode (https://tools.veracode.com/integrations/Jenkins/bin/veracode-jenkins-plugin.hpi) ?

Mark Waite

unread,
May 15, 2019, 10:46:19 PM5/15/19
to Jenkins Users
On Wed, May 15, 2019 at 7:37 PM Nageswara Rao Palukuri Venkata <pvnr...@gmail.com> wrote:
How can we upload a custom plugin file using groovy init script?
Is there any init groovy script is available to upload custom plugin veracode (https://tools.veracode.com/integrations/Jenkins/bin/veracode-jenkins-plugin.hpi) ?

I think you may be mixing terms in a way that needs more clarification before someone can answer your question.

Since Veracode is a static analysis tool, I assume that you want to submit your source code or a portion of your source code to Veracode for analysis.  You should probably refer to the Veracode help site which describes "Using the Veracode Jenkins Plugin"..  That page seems to describe how you can use the Veracode plugin to submit source code for analysis by Veracode.

I don't think you actually want an init groovy script, since they generally only run when the system starts, not when a Jenkins job runs and not when code is changed in a source code repository.

I don't think you are creating a Jenkins plugin, so I assume you don't want to upload a custom plugin to Veracode.  I assume you are creating your own product and you want to upload its source code to Veracode.

Let me know if I've made a wrong assumption somewhere in that list of assumptions.
 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/df6be5c5-fc5d-4937-8690-c8012db8daaf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Thanks!
Mark Waite

Nageswara Rao Palukuri Venkata

unread,
May 15, 2019, 11:08:23 PM5/15/19
to jenkins...@googlegroups.com
Hi,

I am creating a Jenkins instance using init scripts. I am able to configure all the required custom tools, extension and able to configure the jobs related to my project. I want to install the Veracode plugin also using the init script. 

Looking for any init script (groovy) to install Veracode plugin in Jenkins.

Thanks
Nageswara Rao

Mark Waite

unread,
May 15, 2019, 11:27:30 PM5/15/19
to Jenkins Users
On Wed, May 15, 2019 at 8:08 PM Nageswara Rao Palukuri Venkata <pvnr...@gmail.com> wrote:
Hi,

I am creating a Jenkins instance using init scripts. I am able to configure all the required custom tools, extension and able to configure the jobs related to my project. I want to install the Veracode plugin also using the init script. 

Looking for any init script (groovy) to install Veracode plugin in Jenkins.

That feels like a complicated way to manage plugins, but it appears that others have done something similar in the past.  Refer to https://stackoverflow.com/questions/31457623/jenkins-plugin-installation as one possible source of help, or the https://github.com/blacklabelops-legacy/jenkins/blob/master/imagescripts/initplugins.sh which that page references.

I've preferred to manage my Jenkins instances as Docker images so that I can specify the plugins to be installed in either a plugins.txt file or in the ref/plugins directory.  That seems simpler to me than writing groovy script functions to perform plugin installations during startup.



For more options, visit https://groups.google.com/d/optout.


--
Thanks!
Mark Waite
Reply all
Reply to author
Forward
0 new messages