I have form submission problem on the shared objects configure page when
I access Jenkins through a local proxy (ssl tunneling). I got a "server
not found" page when I click the "save" button, Jenkins was trying to
submit/redirect to https://real-server-name/jenkins//manage, instead of
(my guess) https://my-local-proxy/jenkins/manage.
Is there any way to get around this? I tried lynx/w3m on the remote
server, but they seem to have difficulties dealing with the "drop down
button" gadget.
On 18.03.2012 22:51, Grégory Boissinot wrote:
Thanks for testing EnvInject plugin.
EnvInject is aimed at managing environment variables.
For your need, you can use the Shared Objects plugin.
It's a complement to the EnvInject plugin. It enables you to share
objects in your environment (such as in your case a properties files
through an URL) and inject its content as environment variables with
the EnvInject plugin.
You define your shared objects in the global Jenkins configuration
(>Manage Jenkins> Shared Objects) and check 'Propagate shared objects'
in the 'Prepare an environment for the job run' section.
Shared objects will be computed dynamically and the results will be
injected as environment variables for each job build.
https://wiki.jenkins-ci.org/display/JENKINS/SharedObjects+Plugin
On Fri, Mar 16, 2012 at 10:43 AM, John Vacz
<mailing.list.collect...@googlemail.com
<mailto:mailing.list.collect...@googlemail.com>> wrote:
Can EnvInject plugin inject enviroment variables defined in
.properties file from a URL? I tried but it did not work. Have i
missed something obvious?
Our particular use case is that we need to inject some mail
address lists as environment variables to be used by Email-ext
plugin, and it would be very handy if we can just inject those
variables directly from a http server (or our anonymous SVN in
this particular case). Meanwhile I add a shell script to download
the .properties file and then use EnvInject to inject them.
Furthermore, the variables are actually "global", it would be
great if we do not need to inject them in every job, but globally
in Jenkins. I noticed that in Jenkins configure screen, there is a
"Prepare jobs environment" section (provided by EnvInject?), it
seems that one can inject viarables from a file with absolute
path. But have some concerns: a) this injection is rather
"static", as the help stated "You must restart the node
(master/slave) for the consideration of this property", that means
the variables cannot be changed on the fly (I did not get a chance
to test this, so I might be wrong); b) I am not sure if this
injection is transparent in a master-slave setting.
Any suggestion is appreciated.