Hello everyone,
My (probably relevant) setup:
Solaris 11.3
JDK 1.8.0-102
Jenkins 2.32
Ant Plugin 1.4
I've setup a project which checks out some code and a build.xml for ant.
This build.xml contains a target "prepare" that just creates some
directories.
I also let Jenkins handle my ant installations via the ant plugin: I
selected "automated install" of the newest ant (1.9.7).
So when I first started my build, my code was checked out correctly. Then
ant was installed to
${JENKINS_HOME}/tools/hudson.tasks.Ant_AntInstallation/ant (I named that
ant installation "ant")
Then my build log says:
*16:08:01* [Some_Server] $
/app/jenkins/work/tools/hudson.tasks.Ant_AntInstallation/ant/bin/ant prepare
-debug*16:08:01* Buildfile:
/app/jenkins/work/workspace/Some_Project/build.xml*16:08:01* *16:08:01* BUILD
SUCCESSFUL*16:08:01* Total time: 0 seconds*16:08:01* Finished: SUCCESS
I have a user "ci" that jenkins is running as, the JENKINS_HOME folder has
been appropriately given permissions and ownership.
The ant installation looks fine. The "ci" user has a default PATH.
When I add the ant installation folder
/app/jenkins/work/tools/hudson.tasks.Ant_AntInstallation/ant/bin
to the PATH as another user than the "ci" user, it correctly fails because that
user doesn't have the correct permissions to create the directories.
So I guess the problem is that ant looks for something in the ant folder, which
isn't in the PATH.
My understanding is that I should let Jenkins manage my ant installations and
select the appropriate ant installation for my project.
But when I build that project and output the environment and shell variables
(env, set) during build, neither ANT_HOME is set nor the PATH is accordingly
set to incorporate the ant installation used for the build.
Is this normal? Doesn't the build use ANT_HOME to select the ant installation
it uses?
Regards,
Daniel Poggenpohl
--
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/ea195c7b-ffdd-42dd-bd42-383249bf7235%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.