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,560,304
Community Members
 
Community Events
185
Community Groups

Robot test executes locally but fails whiles executing from bamboo[Agent]

While running the bamboo plan fails to execute the robot tests as below:

command	26-Apr-2023 05:22:39	Beginning to execute external process for build 'Platform - Validation - Initial Job #63 (P-V-JOB1-63)'\n ... running command line: \n/home/root/bamboo-agent-home/temp/P-V-JOB1-63-ScriptBuildTask-1082238127479262881.sh\n ... in: /home/root/bamboo-agent-home/xml-data/build-dir/P-V-JOB1\n
build	26-Apr-2023 05:22:39	Hello!
build	26-Apr-2023 05:22:39	Entered into scripts folder
error	26-Apr-2023 05:22:39	Traceback (most recent call last):
error	26-Apr-2023 05:22:39	  File "/usr/bin/robot", line 5, in <module>
error	26-Apr-2023 05:22:39	    from robot.run import run_cli
error	26-Apr-2023 05:22:39	ModuleNotFoundError: No module named 'robot'

In the same machine I have installed robot framework and able to execute tests from different folder but failing in bamboo-agent

1 answer

0 votes
Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 26, 2023

Hello @Pavankumar

That's a Python environment configuration issue.

Please review if all the required modules in your code are installed on the Build agent and if they are accessible by the user that is running the Agent (in your case root)

The Robot Framework can be installed on the Agent by running:

  • pip install robotframework

To reproduce the issue and test for alternatives, you can log to your Agent server as the same user that runs the Bamboo Agent application, cwd to the /home/root/bamboo-agent-home/xml-data/build-dir/P-V-JOB1 directory and run the build commands manually.

Kind regards,

Eduardo Alvarenga
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful-- 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events