# First job in Jenkins failed with command not found

**URL:** <https://community.jenkins.io/t/first-job-in-jenkins-failed-with-command-not-found/8098>\
**Category:** Using Jenkins\
**Created:** [June 20, 2023, 4:27pm UTC](https://community.jenkins.io/t/first-job-in-jenkins-failed-with-command-not-found/8098 "2023-06-20T16:27:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hollychen](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@hollychen](https://community.jenkins.io/u/hollychen)\
**Post date:** [June 20, 2023, 4:27pm UTC](https://community.jenkins.io/t/first-job-in-jenkins-failed-with-command-not-found/8098/1 "2023-06-20T16:27:43Z")

</div>

First job created followed by [How to Create a New Build Job in Jenkins Freestyle Project](https://www.guru99.com/create-builds-jenkins-freestyle-project.html), failed with:  
Running as SYSTEM  
Building in workspace /var/lib/jenkins/workspace/Hello World  
[Hello World] $ /bin/sh -xe /tmp/jenkins1813569584790345761.sh

- hello world  
/tmp/jenkins1813569584790345761.sh: line 2: hello: command not found  
Build step ‘Execute shell’ marked build as failure  
Finished: FAILURE

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [June 20, 2023, 4:45pm UTC](https://community.jenkins.io/t/first-job-in-jenkins-failed-with-command-not-found/8098/2 "2023-06-20T16:45:42Z")

</div>

> [@hollychen](#):
>
> hello world  
> /tmp/jenkins1813569584790345761.sh: line 2: hello: command not found

There is no command named `hello` available in the path on that agent. Usually, the command to run would be `echo hello world` rather than `hello world`.

---

<div class="post-metadata">

**Author:** ![hollychen](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@hollychen](https://community.jenkins.io/u/hollychen)\
**Post date:** [June 20, 2023, 6:14pm UTC](https://community.jenkins.io/t/first-job-in-jenkins-failed-with-command-not-found/8098/3 "2023-06-20T18:14:45Z")

</div>

Oh, my bad. made mistake, fixed. Thank you.
