Adapt jenkins with new way of building.