• 0
    • 3
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      I would like to have the build script behave differently if the build was scheduled vs triggered by a checkin vs triggered by another build. The most pressing need for me is to run more tests on the scheduled build.

            [BAM-13030] provide trigger reason in a bamboo property

            Jan Majkutewicz (Inactive) made changes -
            Resolution New: Done [ 17 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]

            Hello,

            As a part of the 9.3 release, there will be a variable added (`bamboo.triggerReason.key`) that will be present in both the plan and deployment contexts (so it will be also accessible as a Task condition).

            This variable will point out the key of the trigger reason e.g. `com.atlassian.bamboo.plugin.system.triggerReason:ManualBuildTriggerReason`. 

             

            Bamboo Development Team

            Mateusz Szmal added a comment - Hello, As a part of the 9.3 release, there will be a variable added (`bamboo.triggerReason.key`) that will be present in both the plan and deployment contexts (so it will be also accessible as a Task condition). This variable will point out the key of the trigger reason e.g. `com.atlassian.bamboo.plugin.system.triggerReason:ManualBuildTriggerReason`.    Bamboo Development Team
            Mateusz Szmal made changes -
            Fix Version/s New: 9.3.0 [ 104112 ]
            Mateusz Szmal made changes -
            Status Original: In Progress [ 3 ] New: Waiting for Release [ 12075 ]
            Mateusz Szmal made changes -
            Status Original: Gathering Interest [ 11772 ] New: In Progress [ 3 ]
            Mateusz Szmal made changes -
            Assignee New: Mateusz Szmal [ 851f15845f55 ]
            Mateusz Szmal made changes -
            Remote Link New: This issue links to "+core+ Dogfooding › Test Git Branch Detection › feature-BAM-13030-adding-trigger-reason-variable (tardigrade-bamboo)" [ 712414 ]

            Our use case is the same as other comments, with the  plan behaving differently depending on the trigger reason for a build.
            ie If the build was bitbucker server commit or a scheduled build triggered

            The plan variable bamboo.ManualBuildTriggerReason.userName  already exists. 

            If a trigger type variable was made available, scripts could then be written to handle the various trigger types scenarios
            eg

            bamboo.BuildTrigger.type= Scheduled
            bamboo.BuildTrigger.type=BitbuckerServerRepository
            etc

            Brendan Doherty added a comment - Our use case is the same as other comments, with the  plan behaving differently depending on the trigger reason for a build. ie If the build was bitbucker server commit or a scheduled build triggered The plan variable bamboo.ManualBuildTriggerReason.userName  already exists.  If a trigger type variable was made available, scripts could then be written to handle the various trigger types scenarios eg bamboo.BuildTrigger.type= Scheduled bamboo.BuildTrigger.type=BitbuckerServerRepository etc
            SET Analytics Bot made changes -
            UIS Original: 1 New: 0

            xr600 added a comment -

            Differentiating builds was exactly why I developed this: However, I am not using Bamboo at the moment - And not actively maintaining this project either (I did the plugin on my own time, when I worked in consultancy... ). 

             

            The code, however, is really not that complex, so should be easy to customize for any needs  

            xr600 added a comment - Differentiating builds was exactly why I developed this: However, I am not using Bamboo at the moment - And not actively maintaining this project either (I did the plugin on my own time, when I worked in consultancy... ).    The code, however, is really not that complex, so should be easy to customize for any needs  

              851f15845f55 Mateusz Szmal
              8a5055fba4d0 Gail Stewart
              Votes:
              44 Vote for this issue
              Watchers:
              34 Start watching this issue

                Created:
                Updated:
                Resolved: