Hi,

I want to use dockerized go-cd server and agent. I have them both running 
on 2 separate hosts and the server can see the agent as well as run a 
pipeline successfully. I have some requirements that I'm not sure how to 
fit into this setup.

Dockerized go-cd agent comes with openjdk8 pre-installed. I've setup a very 
simple pipeline that uses an internal git repository as it's material. The 
repository has a gradle script as well as gradle wrapper. In my pipeline, 
when setup a job to execute my gradle build script using the wrapper. But 
my pipeline fails with following error message:

[go] Task: sh gradlew clean buildtook: 0.109sexited: 1
ERROR: JAVA_HOME is not set and no 'java' command could be found in your 
PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
[go] Task status: failed, took: 0.109s, exited: 1


I read through the entire page in Docker hub for the dockerized go-cd agent 
but didn't see anything that I might have missed. Has anyone used 
dockerized go-cd agent for running java?

If I step into the container running go-cd agent, I can see java is 
available by running "java -version" but not sure why my pipeline is 
failing.




-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to