What worked for me is environment variable JENKINS_OPTS liek this
JENKINS_OPTS=--commonLibFolder=/root/my_jars/
On Monday 25 July 2016 at 02:48:16 UTC+3 ZT wrote:
> sorry for the delay, i got tied up with workarounds but this continues to
> be an issue.
>
> My goal is to load some custom jars into Jenkins so I am mounting this
> directory already.
>
> When i use docker-compose
>
> I have to do something like
> docker-compose run -d --commonLibFolder={libDirectoryLocation} << This
> works perfectly
>
> I looked into this a bit and jenkins sets this as sun.java.command, so in
> the jenkins system information page , i can see
> sun.java.command /usr/share/jenkins/jenkins.war
> --commonLibLocation={libDirectoryLocation}
>
> I am trying to find an alternate way to do this, so that i don't have to
> type in such a big command (one of the purposes of docker compose)
>
> I have tried a few things
> - Environment variables(sun.java.command) - This creates a second entry
> and does not work
> - JENKINS_OPTS , JENKINS_ARGS (i have used this approach outside docker to
> customize classpath)
>
> Nothing seems to work, i am sure i am am missing something but i can't
> figure out what..
>
>
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/30f3131c-07da-4a69-bd63-dcaf0baa42d4n%40googlegroups.com.