# Flutter builds from remote Jenkins using Agents/nodes

**URL:** <https://community.jenkins.io/t/flutter-builds-from-remote-jenkins-using-agents-nodes/14045>\
**Category:** Using Jenkins\
**Created:** [April 8, 2024, 1:36pm UTC](https://community.jenkins.io/t/flutter-builds-from-remote-jenkins-using-agents-nodes/14045 "2024-04-08T13:36:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jazz](https://avatars.discourse-cdn.com/v4/letter/j/9de053/32.png) [@Jazz](https://community.jenkins.io/u/Jazz)\
**Post date:** [April 8, 2024, 1:36pm UTC](https://community.jenkins.io/t/flutter-builds-from-remote-jenkins-using-agents-nodes/14045/1 "2024-04-08T13:36:48Z")

</div>

Hi Everyone,

I am using Jenkins 2.440.2 on Ubuntu server, Need to remotely build flutter apps/android/iOS. Flutter is installed on the local Mac computer, I created node and it sees this Mac computer. But when I try to run the job it is not working and shows following error:  
$ /bin/sh -xe /var/folders/gt/2qgwvf594w90hj85sxrjyqxr0000gq/T/jenkins14616729415589806688.sh

- ‘!/bin/’  
/var/folders/gt/2qgwvf594w90hj85sxrjyqxr0000gq/T/jenkins14616729415589806688.sh: line 2: !/bin/: No such file or directory  
Build step ‘Execute shell’ marked build as failure  
Finished: FAILURE

---

<div class="post-metadata">

**Author:** ![mawinter69](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mawinter69/32/1625_2.png) [@mawinter69](https://community.jenkins.io/u/mawinter69)\
**Post date:** [April 8, 2024, 1:58pm UTC](https://community.jenkins.io/t/flutter-builds-from-remote-jenkins-using-agents-nodes/14045/2 "2024-04-08T13:58:49Z")

</div>

Are you executing an `sh` step in a pipeline of freestyle project?  
If yes can you post the corresponding content of that step, e.g. pipeline snippet or just the sh step content

---

<div class="post-metadata">

**Author:** ![Jazz](https://avatars.discourse-cdn.com/v4/letter/j/9de053/32.png) [@Jazz](https://community.jenkins.io/u/Jazz)\
**Post date:** [April 8, 2024, 2:23pm UTC](https://community.jenkins.io/t/flutter-builds-from-remote-jenkins-using-agents-nodes/14045/3 "2024-04-08T14:23:40Z")

</div>

Thanks for your prompt reply.  
I am executing it inside Build Steps\> Execute shell. I provided a screenshot below, not sure if the command is working or it needs a proper script.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/e/e14bc10341e2d83a929cb4803ce003c15fdb5542.png)

---

<div class="post-metadata">

**Author:** ![mawinter69](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mawinter69/32/1625_2.png) [@mawinter69](https://community.jenkins.io/u/mawinter69)\
**Post date:** [April 8, 2024, 3:34pm UTC](https://community.jenkins.io/t/flutter-builds-from-remote-jenkins-using-agents-nodes/14045/4 "2024-04-08T15:34:12Z")

</div>

hmm that would mean it is probably in the `flutter` command. Is this a script?  
If yes what is there in this script at the beginning?
