go-cd

How to execute mvn clean install in goCD


mvn clean build command does not execute in GoCD , The pipe line gets triggered but there is nothing displayed in logs and the job keeps running forever after setting inactivity time to 1 min.

task logs

I have created a pipe line and added mvn clean install command to it as in below image.Please let me know what needs to changed to generate artifacts as first step.

task configuration


Solution

  • The most important clue is in your first screenshot, it says "Agent: Not yet assigned". That means that no agent (aka worker) could be found that that can handle your job.

    Please read the manual on managing agents, specifically the section Matching jobs to agents.

    Frequent reasons why no agent can be assigned: