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

Next challenges

Recent achievements


  • Give kudos
  • My kudos


  • 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 fails: 'cmd' is not recognized as an internal or external command

We have a bamboo build which has 4 tasks running on a windows server 2016 VM.


Each task has cd command to go to repository and then mvn compile .......command

Once the maven compilation is done, we see this error on all the four tasks

All my PATH variables in window server are correctly (JAVA_HOME,MAVEN_HOME) and also "C:\Windows\system32" and "C:\Windows\system32\cmd.exe"

To avoid confusion, i appended path variables of user admin to system PATH and deleted the user path.


Nothing seem to work, i have spent enough time debugging and ran out of options now. 


Any help is highly appreciated. 

3 answers

1 accepted

I figured out why that cmd error is coming .

I logged into the windows VM which is run by the bamboo build .

In the services, identity the agent that is being installed .

Right click on Agent and then do agent properties and in Log On tab, I changed the user type from local system account to the admin account that i am logged in VM.

Now all path variables are respected and maven commands now work without path.


So the user Log On type and VM login type should match

0 votes
Foong Atlassian Team Apr 15, 2019

Is the build run by local or remote agent?

I am facing issue :

'mvn' is not recognized as an internal or external command,
error 17-Sep-2019 18:09:10 operable program or batch file.

 When tried the mvn verify on cmd it works , where as from bamboo it doesnt.please help

Suggest an answer

Log in or Sign up to answer
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...

694 views 1 6
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