Running makefile within an agent

46 views
Skip to first unread message

Ryan Smith

unread,
Aug 13, 2020, 7:25:02 AM8/13/20
to go-cd
Hey everyone,

I'm trying to configure one of my tasks to run a makefile like I would when configuring it locally but I'm having a load of problems with it not being a recognised command.

Am I configuring this incorrectly or do I need to include in somewhere?

Cheers,
Ryan

Jason Smyth

unread,
Aug 13, 2020, 8:55:12 AM8/13/20
to go-cd
Hi Ryan,

You might want to take a look at these 2 threads that both seem to mention the same issue you describe:


Hope this helps,
Jason

Ryan Smith

unread,
Aug 13, 2020, 10:20:45 AM8/13/20
to go-cd
Hi Jason,

Thank you for your reply, I have spent the last hour reading through both of these.

However, my issue still persists, it's informing me that the make command is not found. I have no environment variables set.

Any ideas on how to go about resolving this?

Cheers,
Ryan

Ketan Padegaonkar

unread,
Aug 13, 2020, 10:32:02 AM8/13/20
to go...@googlegroups.com
make is likely not on the PATH that the GoCD agent sees. Running a command (using a gocd job) to print the PATH variable might clarify what directories are on the PATH variable.

- Ketan



--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/89ae0e90-50ed-413f-90f5-153466ff99ccn%40googlegroups.com.

Ryan Smith

unread,
Aug 13, 2020, 11:16:15 AM8/13/20
to go-cd
Hi Ketan,

Thank you for responding.

When I run "bash -c "echo $PATH"" I get "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" returned.

What do I need to do to this?

Cheers,
Ryan

Ketan Padegaonkar

unread,
Aug 13, 2020, 11:49:24 AM8/13/20
to go...@googlegroups.com
Do you have make installed on your agent? Where is it located at? Is it marked as executable?

- Ketan



Ryan Smith

unread,
Aug 13, 2020, 11:52:34 AM8/13/20
to go-cd
Hi Ketan,

I haven't installed make onto my agent, I'm using the Ubuntu 16.04 docker image for it. I assumed it would already be there.

How do I go about getting it installed?

Cheers,
Ryan

Reply all
Reply to author
Forward
0 new messages