Skip to content

Commit afdbac6

Browse files
authored
Merge pull request #448 from swagger-api/fix-ci-scripts
2 parents 893bbab + f81056c commit afdbac6

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

CI/post-nextsnap-v1.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,15 @@ SC_RELEASE_TAG="v$SC_VERSION"
1010
#####################
1111
mvn versions:set -DnewVersion="${SC_NEXT_VERSION}-SNAPSHOT"
1212
mvn versions:commit
13+
14+
#####################
15+
### update all other versions in files around to the new release, including readme ###
16+
#####################
17+
sc_find="<version>$SC_LAST_RELEASE"
18+
sc_replace="<version>$SC_VERSION"
19+
sed -i -e "s/$sc_find/$sc_replace/g" $CUR/README.md
20+
21+
sc_find="<version>$SC_VERSION-SNAPSHOT<\/version>"
22+
sc_replace="<version>$SC_VERSION<\/version>"
23+
sed -i -e "s/$sc_find/$sc_replace/g" $CUR/scripts/pom.xml
24+

CI/post-nextsnap.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,15 @@ SC_RELEASE_TAG="v$SC_VERSION"
1010
#####################
1111
mvn versions:set -DnewVersion="${SC_NEXT_VERSION}-SNAPSHOT"
1212
mvn versions:commit
13+
14+
#####################
15+
### update all other versions in files around to the new release, including readme ###
16+
#####################
17+
sc_find="<version>$SC_LAST_RELEASE"
18+
sc_replace="<version>$SC_VERSION"
19+
sed -i -e "s/$sc_find/$sc_replace/g" $CUR/README.md
20+
21+
sc_find="<version>$SC_VERSION-SNAPSHOT<\/version>"
22+
sc_replace="<version>$SC_VERSION<\/version>"
23+
sed -i -e "s/$sc_find/$sc_replace/g" $CUR/scripts/pom.xml
24+

CI/prepare-release-v1.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ sc_find="<version>$SC_LAST_RELEASE"
3232
sc_replace="<version>$SC_VERSION"
3333
sed -i -e "s/$sc_find/$sc_replace/g" $CUR/README.md
3434

35+
sc_find="<version>$SC_VERSION-SNAPSHOT<\/version>"
36+
sc_replace="<version>$SC_VERSION<\/version>"
37+
sed -i -e "s/$sc_find/$sc_replace/g" $CUR/scripts/pom.xml
3538

3639
#####################
3740
### build and test maven ###

CI/prepare-release.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ sc_find="<version>$SC_LAST_RELEASE"
3232
sc_replace="<version>$SC_VERSION"
3333
sed -i -e "s/$sc_find/$sc_replace/g" $CUR/README.md
3434

35+
sc_find="<version>$SC_VERSION-SNAPSHOT<\/version>"
36+
sc_replace="<version>$SC_VERSION<\/version>"
37+
sed -i -e "s/$sc_find/$sc_replace/g" $CUR/scripts/pom.xml
38+
39+
3540

3641
#####################
3742
### build and test maven ###

0 commit comments

Comments
 (0)