Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Preventing manual builds #4022

tardis4500 ·

We currently have 30 products we are building with the following structure
Builds/
Prod1/
Release Candidates
Branch11
Branch12
Prod2/
Release Candidates
Branch21
Branch22
We want the "Release Candidates" configurations to build on a schedule but don't want developers to be able to trigger these builds while they should be able to trigger the branch builds. If we disable the "Release Candidates," configurations they don't build at all and we are unable to create a group permission for "Builds/*/Release Candidates." But specifying all the products individually in the group permission set would be painful. Is there another way to do this?

  • solved #2
  • replies 1
  • views 24
  • stars 0
robinshen ADMIN ·

Or you may script pre-queue of the top level configuration to do below:
groovy:
if (configuration.name.contains("Release Candidates") && !request.scheduled)
throw new com.pmease.quickbuild.QuickBuildException("Release candidates can only be built via scheduler");