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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bamboo Job Exit with Error cmd' is not recognized as an internal or external command

Hi ,

I have setup a remote bamboo agent to run in a windows environment where The server runs in a Linux environment.

Here i have setup a plan to build a multi module maven project. and that plan runs using that remote agent.

I have split the build process by having few tasks which will execute one after another to build speprate modules.

But after successfully executing the 1st Task the build get failed with a Error message

'cmd' is not recognized as an internal or external command,
operable program or batch file.
Failing task since return code was 1 while expected 0

any tips to find a solution for this issue is highly appriciated.

cheers,

Charith

3 answers

1 vote

On your remote agent, make sure that directory with cmd.exe is in the PATH variable by setting it for the user used to run the agent.

Hi,

Thanks for the answer. I accually tried adding this to PATH using ENV variable settings but no luck. Then i re do it in the place where we can define ENV variables in Bamboo dashbord. Then it worked when the agent is running as a normal process. But when i install it as a service i faced the issue again.

cheers,

Charith

Like Rahul Goutham Banka likes this

I faced the same issue but resolved by following this Doc.

PS: I know this is a very old post, this might help someone.

Like Gary Blower likes this

I solved this issue on my Windows build agent. This has to do with the environment variables set for the user that runs bamboo. Log in as that user and verify that %SystemRoot%\system32 is included in your Path variable for that user.

http://superuser.com/questions/133263/windows-7-user-specific-path

System Path has %SystemRoot%\system32 bit still facing that error

Hi Przemek, I am aslo facing the similar issue. its running fine in Bamboo console and but failind with the below error when bamboo is run as service. I have to run it bamboo as service.

Could you please help in sorting this out?

INFO] BUILD SUCCESS
27-Jan-2012 05:00:12 [INFO] ------------------------------------------------------------------------
27-Jan-2012 05:00:12 [INFO] Total time: 2:26.750s
27-Jan-2012 05:00:12 [INFO] Finished at: Fri Jan 27 05:00:12 GMT-12:00 2012
27-Jan-2012 05:00:12 [INFO] Final Memory: 51M/369M
27-Jan-2012 05:00:12 [INFO] ------------------------------------------------------------------------
27-Jan-2012 05:00:13 'cmd' is not recognized as an internal or external command,
27-Jan-2012 05:00:13 operable program or batch file.
27-Jan-2012 05:00:13 Failing task since return code was 1 while expected 0
27-Jan-2012 05:00:13 Parsing test results...

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

943 views 4 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you