# Jenkins denied permission to read dockerfile

**URL:** <https://community.jenkins.io/t/jenkins-denied-permission-to-read-dockerfile/29343>\
**Category:** Ask a question\
**Created:** [April 3, 2025, 9:31pm UTC](https://community.jenkins.io/t/jenkins-denied-permission-to-read-dockerfile/29343 "2025-04-03T21:31:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ore-stack](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/ore-stack/32/14120_2.png) [@Ore-stack](https://community.jenkins.io/u/Ore-stack)\
**Post date:** [April 3, 2025, 9:31pm UTC](https://community.jenkins.io/t/jenkins-denied-permission-to-read-dockerfile/29343/1 "2025-04-03T21:31:20Z")

</div>

I am trying to use jenkins build for a dockerized app but I get this error + make test

Running tests…

Error: [Errno 13] Permission denied: ‘/app’

make: \*\*\* [Makefile:93: test] Error 1

[Pipeline] }

[Pipeline] // stage

[Pipeline] stage

[Pipeline] { (Deploy)

Stage “Deploy” skipped due to earlier failure(s)

[Pipeline] getContext

[Pipeline] }

[Pipeline] // stage

[Pipeline] }

[Pipeline] // node

[Pipeline] End of Pipeline

ERROR: script returned exit code 2

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 3, 2025, 10:28pm UTC](https://community.jenkins.io/t/jenkins-denied-permission-to-read-dockerfile/29343/2 "2025-04-03T22:28:18Z")

</div>

hmm how should we help when you provide zero context.  
All I can tell is that you seem to run `make` (in an `sh`step?) and that this throws an error.  
Does it work when you run the same thing on the command line?

---

<div class="post-metadata">

**Author:** ![Ore-stack](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/ore-stack/32/14120_2.png) [@Ore-stack](https://community.jenkins.io/u/Ore-stack)\
**Post date:** [April 3, 2025, 11:22pm UTC](https://community.jenkins.io/t/jenkins-denied-permission-to-read-dockerfile/29343/3 "2025-04-03T23:22:45Z")

</div>

My pipeline is trying to access /app directory

---

<div class="post-metadata">

**Author:** ![Ore-stack](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/ore-stack/32/14120_2.png) [@Ore-stack](https://community.jenkins.io/u/Ore-stack)\
**Post date:** [April 3, 2025, 11:45pm UTC](https://community.jenkins.io/t/jenkins-denied-permission-to-read-dockerfile/29343/4 "2025-04-03T23:45:40Z")

</div>

When I try to run “make test” inside a shell in my jenkins pipeline which tries too access a /app directory, I get Error: [Errno 13] Permission denied: ‘/app’

make: \*\*\* [Makefile:93: test] Error 1

---

<div class="post-metadata">

**Author:** ![berviantoleo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/berviantoleo/32/13999_2.png) [@berviantoleo](https://community.jenkins.io/u/berviantoleo)\
**Post date:** [April 5, 2025, 5:07am UTC](https://community.jenkins.io/t/jenkins-denied-permission-to-read-dockerfile/29343/5 "2025-04-05T05:07:43Z")

</div>

Please provide more context, like the structure of your app, your dockerized app structure, and your Jenkinsfile sample. There are many possibilities if you just provide the errors.
