Duplicated jenkins build script for publishing packages.