---
title: "Discussion on \"Jenkins error looks like script isn't approved when running code in a method below the pipeline\" | Hashnode"
description: "Discussion on \"Jenkins error looks like script isn't approved when running code in a method below the pipeline\". Edit 3: Feel free to chime in on this but I think I answered my own question and it's a CPS issue with running the sh step outside the pipeline\nSorry that title is really wordy but it's kind of a stupid error... the error makes it appear as if I need..."
url: "https://hashnode.com/posts/jenkins-error-looks-like-script-isnt-approved-when-running-code-in-a-method-below-the-pipeline/679e607245396606aca64d53"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Jenkins error looks like script isn't approved when running code in a method below the pipeline](https://blogs.sretribe.net/jenkins-error-looks-like-script-isnt-approved-when-running-code-in-a-method-below-the-pipeline?utm_source=hashnode&utm_medium=feed)

Edit 3: Feel free to chime in on this but I think I answered my own question and it's a CPS issue with running the sh step outside the pipeline Sorry that title is really wordy but it's kind of a stupid error... the error makes it appear as if I need...

Feb 1, 2025 · 2 min read · blogs.sretribe.net  
Read the article

## Written by

[Fizzy](https://hashnode.com/@fiizzy)

@fiizzy

  
[View profile](https://hashnode.com/@fiizzy)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
