# Unable to run Jenkins Build...getting robot: command not found error

**URL:** https://forum.robotframework.org/t/unable-to-run-jenkins-build-getting-robot-command-not-found-error/6698
**Category:** Robot Framework
**Created:** [22 January 2024 07:51 UTC](https://forum.robotframework.org/t/unable-to-run-jenkins-build-getting-robot-command-not-found-error/6698 "2024-01-22T07:51:50Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![sayom88](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/sayom88/32/936_2.png) [@sayom88](https://forum.robotframework.org/u/sayom88)
#### Post date: [22 January 2024 07:51 UTC](https://forum.robotframework.org/t/unable-to-run-jenkins-build-getting-robot-command-not-found-error/6698/1 "2024-01-22T07:51:50Z")

</div>

Hello Team,  
I am getting the following error in Jenkins while trying to run a Robot script. Can you kindly suggest what extra configuration I need to do in my Jenkins setup to get rid of this? ( I have already installed the robot plugin for jenkins)

Started by user [admin](http://localhost:8080/user/admin)  
Running as SYSTEM  
Building in workspace /Users/sayomghosh/.jenkins/workspace/RobotFramework  
[RobotFramework] $ /bin/sh -xe /var/folders/l2/\_w84dps97lx3z25c0\_mxpwq80000gn/T/jenkins14162264934075732540.sh

- cd /Users/sayomghosh/Documents/ROBOT\_FRAMEWORK\_SCRIPTS/MainframeIntegration\_1
- bash robot\_exec.sh  
robot\_exec.sh: line 2: robot: command not found  
Build step ‘Execute shell’ marked build as failure  
Finished: FAILURE

---

<div class="post-metadata">

### Author: ![rasjani](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rasjani](https://forum.robotframework.org/u/rasjani)
#### Post date: [22 January 2024 09:48 UTC](https://forum.robotframework.org/t/unable-to-run-jenkins-build-getting-robot-command-not-found-error/6698/2 "2024-01-22T09:48:23Z")

</div>

And you have installed both Python _and_ Robot Framework itself also into the jenkins node ? Jenkins plugin will not do that, it’s only used to visualize RF’s reports.

---

<div class="post-metadata">

### Author: ![sayom88](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/sayom88/32/936_2.png) [@sayom88](https://forum.robotframework.org/u/sayom88)
#### Post date: [22 January 2024 09:54 UTC](https://forum.robotframework.org/t/unable-to-run-jenkins-build-getting-robot-command-not-found-error/6698/3 "2024-01-22T09:54:01Z")

</div>

I am running Jenkins locally in my machine…in that machine both are already installed @rasjani

---

<div class="post-metadata">

### Author: ![rasjani](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rasjani](https://forum.robotframework.org/u/rasjani)
#### Post date: [22 January 2024 10:25 UTC](https://forum.robotframework.org/t/unable-to-run-jenkins-build-getting-robot-command-not-found-error/6698/4 "2024-01-22T10:25:07Z")

</div>

Jenkins will not run on your user credentials but as a separate “service account”. If robot command is not found, that typically would mean your python installation _and_ installed packages are not in PATH for the jenkins user account.

---

<div class="post-metadata">

### Author: ![sayom88](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/sayom88/32/936_2.png) [@sayom88](https://forum.robotframework.org/u/sayom88)
#### Post date: [22 January 2024 10:27 UTC](https://forum.robotframework.org/t/unable-to-run-jenkins-build-getting-robot-command-not-found-error/6698/5 "2024-01-22T10:27:43Z")

</div>

So you have any tutorial or doc on how to do that please…currently i am logged in as a jenkins admin

---

<div class="post-metadata">

### Author: ![rasjani](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rasjani](https://forum.robotframework.org/u/rasjani)
#### Post date: [23 January 2024 09:22 UTC](https://forum.robotframework.org/t/unable-to-run-jenkins-build-getting-robot-command-not-found-error/6698/6 "2024-01-23T09:22:04Z")

</div>

On general level, expecting that “slave” node will contain all dependencies is (to me) an antipattern. Can be useful at times to speed up things but also, can be very _painful_ at times. If you need tutorials, there’s tons of youtube stuff that you can find with “jenkins ensure tools available in slave”.

But that said, have you tried if python can be found when you run your job ? If yes, construct a virtual environment in your bash script (robot\_exec.sh) and install dependencies on every job execution.

Also maybe [http://rasjani.github.io/2020/02/01/benefits-of-venvs.html](http://rasjani.github.io/2020/02/01/benefits-of-venvs.html) helps ? Its not howto tutorial but answers “why” venv’s are benefit when dealing with CI build servers…
