Can I prevent my users to build a dataset on master but let them build on a branch?

We are working with many devs on a pipeline.

The master branch requires multiple datasets upstream to update, to do incremental joins, so I don’t want devs to be able to build on master, as this could lead to missing data during the joins.

However, I want devs to be able to still iterate on the code on branches and test alternative implementations.

How can I allows those devs to run builds on branches but not on protected branches like master ?

You could set a build policy that never allows a job spec to be built on a specific branch

https://xxx.palantirfoundry.com/workspace/documentation/developer/api/build2/objects/com.palantir.foundry.build2.manager.api.BuildPolicy

3 Likes

Hi @yushi - Great answer - was not even aware this was possible.

Could you elaborate whether this is also available through the UI and not just via backend endpoint? I looked in the code repository options, but was not able to find it.

Hi @HugoRodrigues thanks for the follow up question.

Unfortunately, as far as I know there isn’t a UI for configuring build policy and it will have to go through an API call.

Both useful answers. Many thanks for sharing this information.

1 Like