diff --git a/CI/post-release.sh b/CI/post-release.sh index d7612663..77eef39e 100755 --- a/CI/post-release.sh +++ b/CI/post-release.sh @@ -17,9 +17,14 @@ mvn versions:set -DnewVersion="${SC_NEXT_VERSION}-SNAPSHOT" mvn versions:commit ##################### -### update all other versions in files around to the next snapshot or new release, including readme and gradle ### +### update all other versions in files around to the next snapshot or new release ### ##################### -sc_find="version\: $SC_VERSION" -sc_replace="version: $SC_NEXT_VERSION-SNAPSHOT" -sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/resources/openapi.yaml +sc_find="$SC_VERSION" +sc_replace="$SC_SC_NEXT_VERSION\-SNAPSHOT" +sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/webapp/WEB-INF/web.xml + + +sc_find="$SC_VERSION" +sc_replace="$SC_NEXT_VERSION\-SNAPSHOT" +sed -i -e "s/$sc_find/$sc_replace/g" Dockerfile diff --git a/CI/prepare-release.sh b/CI/prepare-release.sh index 5ccaba6c..4d5da294 100755 --- a/CI/prepare-release.sh +++ b/CI/prepare-release.sh @@ -31,15 +31,15 @@ mvn versions:set -DnewVersion=$SC_VERSION mvn versions:commit ##################### -### update version in openapi.yaml file ### +### update version in files ### ##################### sc_find="$SC_VERSION\-SNAPSHOT" sc_replace="$SC_VERSION" sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/webapp/WEB-INF/web.xml -sc_find="target/swagger-petstore-v2-$SC_VERSION\-SNAPSHOT" -sc_replace="target/swagger-petstore-v2-$SC_VERSION" +sc_find="$SC_VERSION\-SNAPSHOT" +sc_replace="$SC_VERSION" sed -i -e "s/$sc_find/$sc_replace/g" Dockerfile #####################