dot
dot

Reputation: 15670

How to dump the feature flags into a JSON file within the project folder when Gitlab pipeline runs

We need a way to have our gitlab-ci.yml create a JSON file with all our flags and their status inside, every time the pipeline is run.

I've been reading up on Unleash proxy and client SDKs for real time toggle status, but this isn't what I need right now. Just want to grab all flags for a given project and have the YAML create a JSON file.

Can someone point me in the right direction?

I found this article. Had to go under Project => Settings => General to get the project ID. Calling that API, can I see my test feature flags.

Now I just need to know how to access this API from inside the pipeline logic. Or maybe there's a better way?

Upvotes: 0

Views: 155

Answers (0)

Related Questions