Re: [go-cd] Questions concerning Agents: Ant and how to install more Agents?

2017-01-19 Thread Aravind SV
Oh, you asked about "ant" on the server. You'll need ant on the agent, not
the server.

About multiple agents on a machine, see this part of the documentation
.
It's nothing special. If you run multiple agents, they'll show up in the
"Agents" page as separate agents, that's all. Agents need to be configured
to connect to the server. That page explains how to create an
/etc/default/go-agent-1 file to configure the second agent, etc.

On Thu, Jan 19, 2017 at 8:21 AM, Aravind SV  wrote:

> Hey Christian,
>
> Sure. The way to think about a GoCD Agent is: It's a remote node/box where
> you can run something. That "something" is controlled by what you configure
> on the GoCD server.
>
> So, if you need to execute "ant" on an agent, you'll configure that in the
> GoCD server and then make sure that ant is installed on the agent. There's
> nothing special about installing something on the agent. You can use a
> package manager, just like you would with anything else you want to
> install. The trick is to make sure that the PATH environment variable is
> set, so that your newly installed program is available to the agent.
>
> In the message you posted, it says that the PATH is set to
> /usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/var/go/.local/bin:/var/go/bin.
> So, anything in those paths can be executed. It looks like you've already
> changed PATH (by adding /var/go/bin, etc). So, I won't go into that. Just
> make sure something like: /var/go/bin/ant or /var/go/.local/bin/ant are
> executable files, and you should be good to go.
>
> Hope that helps,
> Aravind
>
>
> On Tue, Jan 17, 2017 at 6:12 PM, Christian Kolb 
> wrote:
>
>> I thank you a lot but I have no idea how to establish a PATH or
>> Environment variable for Ant at my GoCD server.
>>
>> Can someone help me in that matter? I feel pretty much lost.
>>
>>
>>
>> Am Freitag, 13. Januar 2017 12:47:22 UTC+1 schrieb Aravind SV:
>>>
>>> About ant not being found, this page in the documentation
>>> 
>>> might help. Search for: "During the running of a task, in the console
>>> output"
>>>
>>> On Thu, Jan 12, 2017 at 7:53 PM, Christian Kolb 
>>> wrote:
>>>
 Question 1: How to install Ant on a Agent?  Is itdone by installing Ant
 on my Fedora (on which my server and Agent are currently running)?
 I executed recently the build.xml file of this repo (
 https://github.com/skeeto/sample-java-project) and I received the
 following messages at the end of the Job logfile:

 01:17:38.969 [go] Start to execute task: . 01:17:38.973 Error 
 happened while attempting to execute 'ant'. Please make sure [ant] can be 
 executed on this agent. 01:17:38.973 [Debug Information] Environment 
 variable PATH: 
 /usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/var/go/.local/bin:/var/go/bin
  01:17:38.984 [go] Current job status: failed.

 Is the failing of the job associated with the lack of Ant on my Agent or 
 associated with the second-last line?
 If the latter, can you explain to me what it means?

 Question 2: How to install multiple Agents for my Go Server?
 As far as I see it it is not possible to install multiple Agents on the 
 same OS instance.
 If I install other Agents on other machines, how can I connect the with my 
 Go Server?


 --
 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 go-cd+un...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>> --
>> 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 go-cd+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 go-cd+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-cd] Questions concerning Agents: Ant and how to install more Agents?

2017-01-17 Thread Christian Kolb
I thank you a lot but I have no idea how to establish a PATH or Environment 
variable for Ant at my GoCD server.

Can someone help me in that matter? I feel pretty much lost.



Am Freitag, 13. Januar 2017 12:47:22 UTC+1 schrieb Aravind SV:
>
> About ant not being found, this page in the documentation 
> 
>  
> might help. Search for: "During the running of a task, in the console 
> output"
>
> On Thu, Jan 12, 2017 at 7:53 PM, Christian Kolb  > wrote:
>
>> Question 1: How to install Ant on a Agent?  Is itdone by installing Ant 
>> on my Fedora (on which my server and Agent are currently running)?
>> I executed recently the build.xml file of this repo (
>> https://github.com/skeeto/sample-java-project) and I received the 
>> following messages at the end of the Job logfile:
>>
>> 01:17:38.969 [go] Start to execute task: . 01:17:38.973 Error 
>> happened while attempting to execute 'ant'. Please make sure [ant] can be 
>> executed on this agent. 01:17:38.973 [Debug Information] Environment 
>> variable PATH: 
>> /usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/var/go/.local/bin:/var/go/bin
>>  01:17:38.984 [go] Current job status: failed.
>>
>> Is the failing of the job associated with the lack of Ant on my Agent or 
>> associated with the second-last line?
>> If the latter, can you explain to me what it means?
>>
>> Question 2: How to install multiple Agents for my Go Server?
>> As far as I see it it is not possible to install multiple Agents on the same 
>> OS instance.
>> If I install other Agents on other machines, how can I connect the with my 
>> Go Server?
>>
>>
>> -- 
>> 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 go-cd+un...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 go-cd+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.