Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Miscellaneous plug in options

Michael Rüegg edited this page May 16, 2017 · 2 revisions

Bamboo plug-ins can offer custom plan options in the miscellaneous section of the plan configuration. These can be specified in the DSL by using the special configure section in the miscellaneous area:

miscellaneous {
    expire {
        expireBuildResults true
        expireBuildLogs true
        expireAfter 10, TimeUnit.WEEKS
        minimumBuildsToKeep 12
        keepBuildsWithTheFollowingLabels "DONOTDELETE", "IMPORTANT"
    }

    configure(
        'custom.ruby-config-runtime': 'SYSTEM 2.0.0-p648@default',
        'custom.ruby-config-environmentVariables': 'SOME_VAR="-D123 -R345"'
    )
}

In this example, you see two options for the Bamboo Ruby plug-in. But how do you get the corresponding option keys to configure the values on the miscellaneous options page?

Miscellaneous plan configuration form

The way to retrieve these values is to configure the settings in the Bamboo UI and then save the configuration form while watching the POST request in your browser's dev tools. See the following example:

View of Chromes browser tools to watch the POST request

The form data of the POST request contains the field keys and values you need for the DSL.

Clone this wiki locally