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
> <https://groups.google.com/d/msgid/go-cd/a19f5206-b9e3-4321-9831-e3da5fdf4c92n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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.

Reply via email to