BUILD_ID must come before ref.