I think you need to use a gocd-agent image that is baked from maven image.
The agent image when started should register with gocd server and have an
actual agent running. In your case the image is trying to run mvn command
on startup and exits quickly.

I can understand if you're new to this elastic agent setup on gocd this can
be confusing but hopefully this is a one time learning.

Thanks,

On Tue, Aug 15, 2023, 18:01 Vijayakumaran A. <
vijayakumara...@praniontech.com> wrote:

> Hi Team,
>
> I have set up a docker elastic agent using docker plugin and created a
> cluster profile with one elastic profile using* maven:3.6.3-openjdk-11 *docker
> image.
>
> i have one pipeline with one stage build maven job,i wanted to perform
> just checkout the code and *mvn clean install* using elastic agent,and i
> wanted to save generted build artifact.i have given elastic agent profile
> ID in this job.when i run the pipeline it started created
> *maven:3.6.3-openjdk-11 *docker image after one sec the container status
> automatically exited.i don't know why.Can i need to change any other docker
> images are what steps i need to make this works. please anyone help me to
> build my pipeline.
>
> Thanks
>
> --
> 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/04c54e9e-6926-4d25-9e3d-f121d4230920n%40googlegroups.com
> <https://groups.google.com/d/msgid/go-cd/04c54e9e-6926-4d25-9e3d-f121d4230920n%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/CAD9m7Cy_7r1HT26n2%2BfQHG2mJoK-3eEgFXa5%3DmFW8boJi-e5mQ%40mail.gmail.com.

Reply via email to