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

How to run a script task from a bamboo plugin

Dilushi August 15, 2017

I have a task that runs in a bamboo plugin as a external process. I cannot run any commands like 'echo $PATH' , as it throws the error 'executable not found'. I need to run a script task with the external process to do the above. 

public ExternalProcess Exec(List<String> pLArg, List<String> pLOpt, String sPwd,
String projectUserId, Map<String, String> variables)
{
TaskContext pContext = GetContext();
List<String> pLCmd = new LinkedList<String>();

pLCmd.add("echo $PATH ");
return Exec(pLCmd, sPwd);
}

 

The requirement is to run a script command from a bamboo plugin in a custom task type plugin.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events