X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fautorelease%2Fprepare-release.sh;h=59c0a94eeacf5b5492d44aa9994e84749d0f37c7;hb=cb0bef72a2250cd6fceb15bd62706b9f08175c71;hp=b20b845fefea3cc401e5eca5f911dd26ccc85d99;hpb=9d38db6bfdd4ec9179596003fe2bd0b97d6a56bc;p=releng%2Fbuilder.git diff --git a/jjb/autorelease/prepare-release.sh b/jjb/autorelease/prepare-release.sh index b20b845fe..59c0a94ee 100644 --- a/jjb/autorelease/prepare-release.sh +++ b/jjb/autorelease/prepare-release.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -l # SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2015, 2017 The Linux Foundation and others. @@ -39,6 +39,10 @@ git submodule foreach "echo \$path \$(git rev-parse --verify HEAD) ${RELEASE_TAG echo "$RELEASE_TAG" find . -name "*.xml" -print0 | xargs -0 sed -i 's/-SNAPSHOT//' +# Ignore changes to Final distribution since that will be released separately +pushd integration/distribution || exit 1 + git checkout -f opendaylight/pom.xml +popd || exit 1 git submodule foreach "git commit -am \"Release $RELEASE_TAG\" || true" git commit -am "Release $RELEASE_TAG"