Fix build running for jenkins