make publishing configurable from jenkins

it started failing again, need easy way to turn it off