Thanks.i have changed image with* gocd/gocd-agent-ubuntu-22.04:v23.3.0 *to build job (mvn clean install) but got maven not installed error. /bin/bash -c "mvn install"took: 0.113sexited: 127 /bin/bash: line 1: mvn: command not found
On Tuesday, August 15, 2023 at 10:23:08 PM UTC+5:30 [email protected] wrote: > 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. <[email protected]> > 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 [email protected]. >> 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/a6cc5189-1e94-4e29-a45b-b2c08dfb7749n%40googlegroups.com.
