Christian
Christian

Reputation: 3972

GoCD Custom Command

I am trying to run a very simple custom command "echo helloworld" in GoCD as per the Getting Started Guide Part 2 however, the job does not finish with the Console saying Waiting for console logs and raw output saying Console log for this job is unavailable as it may have been purged by Go or deleted externally.

enter image description here

My job looks like the following which was taken from typing "echo" in the Lookup Command (which is different to the Getting Started example which I tried first with the same result)

enter image description here

Upvotes: 0

Views: 1939

Answers (2)

Christian
Christian

Reputation: 3972

Found the issue.

The Pipelines have to be in the same Environment to work.

Upvotes: 1

moritz
moritz

Reputation: 12842

Judging from the screenshot, the problem seems to be that no agent is assigned to the task. For an agent to be assigned, it must satisfy all of these conditions:

  • An agent must be running, and connected to the server
  • The agent must be enabled on the "Agents" page
  • If you use environments, the job and the agent need to be in the same environment
  • The agent needs to have all of the resources assigned that are configured in the job

Upvotes: 2

Related Questions