Re: [go-cd] pipeline as code - stuck on waiting for agent

2024-05-04 Thread Chad Wilson
Perhaps you can share the agent(s) you are expecting it to run on, and the
job configuration of the jobs that aren't scheduling?

If the job isn't being assigned, it means there is no free agent[1] in the
desired pipeline-scope environment[2] that offers the requested job-scope
resources [3]. All three conditions need to be met, so either your agent or
the pipeline/job may be configured in a different way to your agents
(perhaps it is requesting a "resource")?

Keep in mind that you don't have to use job resource requirements or
environments if you don't want to, and you can configure it such that some
agents will be able to run jobs with no specific requested resource; or no
specific environment.

-Chad

On Sat, May 4, 2024 at 1:10 AM 'pan...@mammoth.io' via go-cd <
go-cd@googlegroups.com> wrote:

> Hi,
>
> I am trying to use the feature of pipeline as a code. In the config
> repository, I have configured an Allow rule for a specific environment.
> There are agents assigned to this environment. Having done this, I am now
> triggering the pipeline. The pipeline however just keeps waiting for an
> agent allocation. What step am I missing and where should this be
> configured.
> [image: Screenshot from 2024-05-03 22-38-39.png]
>
> Any help would be appreciated.
>
> Warm regards,
> Pankaj
>
>
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/a19f5206-b9e3-4321-9831-e3da5fdf4c92n%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAA1RwH9MsLA31XJ0HpS9s0Fw15owYt8x6r61JmpqLpoUx-RP%2Bw%40mail.gmail.com.


Re: [go-cd] pipeline as code - stuck on waiting for agent

2024-05-03 Thread 'Pankaj Lal' via go-cd
Hi,

I had not tagged as a resource on agent and referred the same in yaml. This
is done now. However the situation is the same. Here are some more details.

This is in pipeline association with environment. mm-documentation-review
is the relevant pipeline here.

[image: Screenshot from 2024-05-03 23-39-04.png]

This is the resource tag on the agent.
[image: Screenshot from 2024-05-03 23-39-27.png]

This is how I refer to the resource in the yaml.

[image: Screenshot from 2024-05-03 23-40-22.png]

On Fri, May 3, 2024 at 10:59 PM Sriram Narayanan 
wrote:

>
> On Sat, May 4, 2024 at 1:10 AM 'pan...@mammoth.io' via go-cd <
> go-cd@googlegroups.com> wrote:
>
>> Hi,
>>
>> I am trying to use the feature of pipeline as a code. In the config
>> repository, I have configured an Allow rule for a specific environment.
>> There are agents assigned to this environment. Having done this, I am now
>> triggering the pipeline. The pipeline however just keeps waiting for an
>> agent allocation. What step am I missing and where should this be
>> configured.
>> [image: Screenshot from 2024-05-03 22-38-39.png]
>>
>> Any help would be appreciated.
>>
>
> Have you tagged the jobs to the resources "linux_build_machines" or to
> "documentation" as appropriate?
>
> Have a look at
> https://github.com/tomzo/gocd-yaml-config-plugin/blob/master/src/test/resources/examples/
> for some examples,
>
> notably, see how to tag a resource here:
> https://github.com/tomzo/gocd-yaml-config-plugin/blob/master/src/test/resources/examples/rich.gocd.yaml#L34
>
> Also, are your pipelines and agents in the same environment? See:
> https://docs.gocd.org/current/configuration/managing_environments.html
>
> If you could share more about your environments, agents and pipelines,
> then we could help you better.
>
>
>>
>> Warm regards,
>> Pankaj
>>
>>
>>
>> --
>> 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/go-cd/a19f5206-b9e3-4321-9831-e3da5fdf4c92n%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "go-cd" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/go-cd/E4Q7ZXhH6Lk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> go-cd+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/CANiY96YAaTLDPaLA%3DvKV2P2uneicgOx%2B%3D%3D_Yirqqh7RaMzksow%40mail.gmail.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAN1UQiMS%3DA7rC0kZ7QKdAOvbQnjBZB_e1bqo67d4q0AyUAkFbg%40mail.gmail.com.


Re: [go-cd] pipeline as code - stuck on waiting for agent

2024-05-03 Thread Sriram Narayanan
On Sat, May 4, 2024 at 1:10 AM 'pan...@mammoth.io' via go-cd <
go-cd@googlegroups.com> wrote:

> Hi,
>
> I am trying to use the feature of pipeline as a code. In the config
> repository, I have configured an Allow rule for a specific environment.
> There are agents assigned to this environment. Having done this, I am now
> triggering the pipeline. The pipeline however just keeps waiting for an
> agent allocation. What step am I missing and where should this be
> configured.
> [image: Screenshot from 2024-05-03 22-38-39.png]
>
> Any help would be appreciated.
>

Have you tagged the jobs to the resources "linux_build_machines" or to
"documentation" as appropriate?

Have a look at
https://github.com/tomzo/gocd-yaml-config-plugin/blob/master/src/test/resources/examples/
for some examples,

notably, see how to tag a resource here:
https://github.com/tomzo/gocd-yaml-config-plugin/blob/master/src/test/resources/examples/rich.gocd.yaml#L34

Also, are your pipelines and agents in the same environment? See:
https://docs.gocd.org/current/configuration/managing_environments.html

If you could share more about your environments, agents and pipelines, then
we could help you better.


>
> Warm regards,
> Pankaj
>
>
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/a19f5206-b9e3-4321-9831-e3da5fdf4c92n%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CANiY96YAaTLDPaLA%3DvKV2P2uneicgOx%2B%3D%3D_Yirqqh7RaMzksow%40mail.gmail.com.


[go-cd] pipeline as code - stuck on waiting for agent

2024-05-03 Thread 'pan...@mammoth.io' via go-cd
Hi,

I am trying to use the feature of pipeline as a code. In the config 
repository, I have configured an Allow rule for a specific environment. 
There are agents assigned to this environment. Having done this, I am now 
triggering the pipeline. The pipeline however just keeps waiting for an 
agent allocation. What step am I missing and where should this be 
configured.
[image: Screenshot from 2024-05-03 22-38-39.png]

Any help would be appreciated.

Warm regards,
Pankaj



-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/a19f5206-b9e3-4321-9831-e3da5fdf4c92n%40googlegroups.com.