Disable manual build trigger for jenkins job

Jenkins

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).

Best Answer

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

Related Question