Skip to main content

How to disable all jobs in a specific folder?

Comments

4 comments

  • Matt Pham

    Works great, thanks.

    0
  • Geoffrey Rosenthal

    It would be helpful if you could expand on:  "NOTE: Some job types don’t support disabling. They are excluded in the script."  Also, it doesn't look like this script works for pipeline jobs.  Is there a different script that would work on pipeline jobs?

    0
  • Matthew Hicks

    Perhaps it's better to

     it.setDisabled(true)
    0
  • Denys Digtiar

    Hi Geoffrey,

    The updated version of the article includes scripts that should work for Pipelines as well.

    0

Please sign in to leave a comment.

About CloudBees Support

Our Support Engineers are available to help with any questions or problems you may have with any of our products.