Restarting a promotion build sets DRONE_BUILD_PARENT to 0

I promote a Drone build by calling drone build promote using the CLI.

Then, I restart the build from the Drone web interface. I expect the DRONE_BUILD_PARENT to be set to the build number that is getting promoted, but instead, it’s set to 0.

Any ideas on why this is happening? Are my expectations correct?

Drone version: 1.9

1 Like