Need to use a JAR in Jenkins Groovy setup scripts

16 views
Skip to first unread message

Kirill

unread,
Jun 15, 2017, 3:39:47 AM6/15/17
to Jenkins Developers
Hi noble Jenkins developers,

I have a few Groovy scripts that set up my Docker-shipped Jenkins. As instructed here - https://hub.docker.com/_/jenkins/ - I copy them to /usr/share/jenkins/ref/init.groovy.d/.
The problem is that now I need some constants to be shared with my plugin which is a part of this Jenkins.

Where should I put the appropriate shared JAR in my Dockerfile in order for the referenced constants to be resolved during the Groovy setup script execution?

Thanks in advance!

Kirill

unread,
Jun 15, 2017, 3:53:15 AM6/15/17
to Jenkins Developers
That was a stupid question, apologies.
All classes from my plugin should be automatically available to the setup Groovy script after it's installed.

Regards,
Kirill.

четверг, 15 июня 2017 г., 8:39:47 UTC+1 пользователь Kirill написал:
Reply all
Reply to author
Forward
0 new messages