gitlabgitlab-ciphabricator

Phabricator run GitLab CI build when Review is Accepted


How can I start a build from Phabricator under specific conditions?

Currently we are using triggers to start a build, but I need to start it when the review is passed in Phabricator.

The flow is: we take the Task from the Review to the Testing, and this is what need to start the trigger which start the build under GitLab.

It is not necessary do the same, if anyone know an other solution or a best practice I am happy to hear.


Solution

  • You said you already have a Build Plan that is triggered on every commit.

    Instead, if you want to trigger your Build Plan, only after you Accept a Revision:

    Add an Herald rule, to follow your conditions and trigger your Build Plan.

    Herald > Create Herald Rule > Differential Revisions > Global Rule
    

    Then:

    Conditions:

    Actions:

    Example:

    Herald revision triger build plan