Use the build time instead of the the time that the condition is evaluated.

For long running builds, there can be a considerable difference between these two times.