Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Pre-Post Build Command Runner plugin curl fail

Ian Vaughan May 16, 2015

I have installed https://marketplace.atlassian.com/plugins/com.sysbliss.bamboo.plugins.prepost-build-command

I added a command "curl ..."

But I get a error in the log output :

simple 16-May-2015 22:48:00 [BuildCommandRunner] running command: curl .... 
error 16-May-2015 22:48:00 Unable to find executable at curl. Will try to run it anyway. 

So I added an Executable via /admin/agent/viewBuilders.action

Named "curl", path "curl".

That didn't work, so I tried the linux path "/usr/bin/curl", that didn't work either.

 

Is the problem with the addon not finding the exec, or the exec?

2 answers

1 accepted

2 votes
Answer accepted
Krystian Brazulewicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 17, 2015

Use the full path to curl in prepost-build-command plugin.

Ian Vaughan May 18, 2015

Cheers, I actually worked it out by process of elimination, but still a valid post I think in case others run into this problem.

Kazi Rizwan September 14, 2020

@Krystian Brazulewicz  can you explain in detail where the add the full path ?

Victor Debone
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 17, 2020

Hello @Kazi Rizwan ,

The full path is required on the field "Commands" in the plugin:

CleanShot 2020-09-17 at 10.32.20@2x.png

In the case of curl, you would not insert `curl` but the full path `/usr/bin/curl`

I hope that helped :)

Like Steffen Opel _Utoolity_ likes this
0 votes
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 16, 2015

Hello Ian,

Please check that curl executable is available at Bamboo server or agent machine via command line.

Create Script task with curl command to identify if issue is at Bamboo or plugin side.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events