It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Enable dark feature flag when running Bamboo as a service

Hello,

How does one go about enabling dark feature flag for getting REST Endpoints used for administrative purposes in Bamboo. ?

Bamboo is running on Windows Server

It is running as a Windows Service

 

I cannot seem to find official documentation on getting this configured then enabled and initially tested ?

http://stackoverflow.com/a/35208685 but appears to not have worked (as it's running as a service)

https://bitbucket.org/atlassian/atlassian-bamboo_rest  the usage section again adding to setenv.bat and restarting bamboo did not work (as initially expecting)

https://jira.atlassian.com/browse/BAM-9344?focusedCommentId=862591&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-862591 this mentions adding, but where exactly ?

 

2017-02-01 12:22:20,258 INFO [http-apr-8085-exec-14] [AccessLogFilter] jsmith GET http://bamboo:8085/rest/admin/latest/config/general/ 407379kb
2017-02-01 12:22:20,260 INFO [http-apr-8085-exec-14] [BambooRestAdminDarkFeatureFilterFactory] Request blocked because '/rest/admin/latest/config/general/' is currently not allowed

 

 

1 answer

Managed to find this buried in the knowledge base

https://confluence.atlassian.com/kb/setting-properties-and-options-on-startup-for-atlassian-applications-833944787.html#SettingpropertiesandoptionsonstartupforAtlassianapplications-startup_params

I did the 'Setting properties for Windows services via the Windows registry' method and can appears to be activated now

I added this to the end of Options within the registry setting

-Datlassian.darkfeature.bamboo.experimental.rest.admin.enabled=true

 

2017-02-01 14:04:41,086 INFO [http-apr-8085-exec-16] [AccessLogFilter] removed GET http://bamboo:8085/rest/admin/latest/config/general/ 342659kb

 

And I have kindly supplied the curl request to!

curl --silent --user "$username:$password" --header "Accept: application/json" --header "X-Atlassian-Token: no-check" "http://bamboo:8085/rest/admin/latest/config/general/"


{
    "self": "http://bamboo:8085/rest/admin/latest/config/general/",
    "instanceName": "Continuous Integration Server",
    "baseUrl": "http://bamboo:8085",
    "gravatarServerUrl": "https://secure.gravatar.com/avatar/",
    "brokerUrl": "tcp://0.0.0.0:54663?wireFormat.maxInactivityDuration=300000",
    "brokerClientUrl": "failover:(tcp://REMOVED:54663?wireFormat.maxInactivityDuration=300000)?initialReconnectDelay=15000&maxReconnectAttempts=10",
    "dashboardDefaultPageSize": 50,
    "branchDetectionIntervalSeconds": 30,
    "enableGravatarSupport": true,
    "enableGzipCompression": true
}

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Unable to add or edit Bitbucket Cloud repository in Bamboo

On 31 May, a GDPR-related change went live in the Bitbucket Cloud API that resulted in users not being able to create or edit Bitbucket Cloud Linked repositories in Bamboo. This API update removed t...

695 views 2 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you