Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-18595

-Datlassian.bamboo.build.disable=true does not disable building plans globally in Bamboo

    XMLWordPrintable

Details

    Description

      Steps to Reproduce

      1. Add the system property -Datlassian.bamboo.build.disable=true to the Bamboo JVM
      2. Configure a build plan for each of the following triggers:
        • Scheduled
        • Single daily build
        • Remote Trigger
        • Repository Polling
        • Bitbucket Server repository triggered

      Expected Results

      No plan will be triggered according to the description "Disable building plans globally in Bamboo"

      since the description of this system var is the following:

      public static final SystemProperty BUILDING_DISABLED

      Disable building plans globally in Bamboo

      • Default : false
      • Usage:
        • env : atlassian.bamboo.build.disable="true"
        • java: -Datlassian.bamboo.build.disable=true

      BUILDING_DISABLED - Class SystemProperty - docs.atlassian.com

      Actual Results

      Plans with the following triggers will run:

      • Scheduled
      • Single daily build

      Plans will:

      • Remote Trigger
        Will not run but will provide a false feedback to whoever tries to trigger it:
        $ curl --user admin:passwd -H "X-Atlassian-Token:no-check" -X POST http://localhost:8085/bamboo/api/rest/updateAndBuild.action?buildKey=SUP-BSPB
        <response>
            <success>A build of SUP-BSPB was triggered by remote http call.</success>
        </response>
        ecrmac-100676:~
        $ curl --user admin:passwd -H "Content-Type: application/json" -X POST http://127.0.0.1:8085/bamboo/rest/triggers/1.0/remote/changeDetection?planKey=SUP-BSPB&skipBranches=false
        ecrmac-100676:~
        $ Change detection for [SUP-BSPB] and its branches has been scheduled.
        

      Attachments

        Issue Links

          Activity

            People

              achystoprudov Alexey Chystoprudov
              dsantos Daniel Santos
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: