3

Is it possible to disable manual build trigger to be configured per job?

I explicitly do not want to disable a job, obviously, as it should be triggered by other build triggers (SCM Polling, Schedule, upstream job).

  • Using project-based security doesn't help as it behaves, unpredictably. When disabling global inheritance (global permissions grant my user group to build jobs) and explicitly granting all permissions for the job to my user group, the job disappears anyway. With enabled global inheritance, defining my user group in the matrix and not enabling the build checkbox doesn't disable manual build ability (that's okay so far). – ITL Dec 16 '15 at 8:46
5

Try using Job Restrictions Plugin

Then check these options:

  • Restrict build execution causes
  • Restrict manual builds submission
  • Prohibits manual launch of the job for all users

Although users can launch the Job, it will be immediately aborted with message in console:

FATAL: [Job Restrictions] - Build will be aborted: Manual launch is prohibited

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.