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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,473
Community Members
 
Community Events
176
Community Groups

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

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

0 votes
Foong Atlassian Team Apr 15, 2019

Is the build run by local or remote agent?

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events