Process.env. CI_PULL_REQUEST not set

Our builds fail every time and then pass when click Rebuild. Even if we run two different builds back to back, (sourced from github) they both fail. But the rebuild button causes it to work.

Does the rebuild button change the environment somehow?