Use the Foreman API to determine if Cancel Build pressed.