Skip to content

Commit a3b5a6e

Browse files
committed
Merge pull request #155 from adangel:release-version-script
Add "-r" to build qualifier as a designator for release builds. #155
2 parents 8c37275 + a2840ee commit a3b5a6e

File tree

2 files changed

+5
-65
lines changed

2 files changed

+5
-65
lines changed

README.md

Lines changed: 1 addition & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -100,67 +100,7 @@ The release happens in two phases:
100100

101101
#### Script
102102

103-
# Pick a release BUILDQUALIFIER (e.g. v20170401-0001) and update versions
104-
# E.g. version is: "4.0.13" and BUILDQUALIFIER is "v20170401-0001".
105-
# The complete version of the plugin will be "4.0.13.v20170401-0001
106-
export BUILDQUALIFIER=$(date -u +v%Y%m%d-%H%M) && echo $BUILDQUALIFIER
107-
108-
# Pick the version of the new release and the next development version
109-
export VERSION=4.0.18
110-
export NEXT=4.0.19
111-
112-
echo Update the ReleaseNotes with the release date and version:
113-
echo
114-
echo "## $(date -u +%d-%B-%Y): $VERSION.$BUILDQUALIFIER"
115-
echo
116-
echo
117-
echo "Press enter to continue..."
118-
read
119-
./mvnw -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:1.7.0:set-version -DnewVersion=$VERSION.$BUILDQUALIFIER
120-
git commit -a -m "Prepare release pmd-eclipse-plugin $VERSION.$BUILDQUALIFIER"
121-
git tag $VERSION.$BUILDQUALIFIER
122-
echo "Create (temporary) release branch"
123-
git branch pmd-eclipse-plugin-rb-$VERSION
124-
125-
echo
126-
echo Update the ReleaseNotes and add a next version entry:
127-
echo "## ????: $NEXT.v????"
128-
echo
129-
echo
130-
echo Press enter...
131-
read
132-
133-
echo "Updating version in master to next"
134-
./mvnw -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:1.7.0:set-version -DnewVersion=$NEXT-SNAPSHOT
135-
git commit -a -m "Prepare next pmd-eclipse-plugin development version $NEXT-SNAPSHOT"
136-
137-
echo Checkout the release branch and build the plugin
138-
git checkout pmd-eclipse-plugin-rb-$VERSION
139-
140-
./mvnw clean verify
141-
142-
echo
143-
echo "Please test now!!!"
144-
echo
145-
echo "Update-site: jar:file:$(pwd)/net.sourceforge.pmd.eclipse.p2updatesite/target/net.sourceforge.pmd.eclipse.p2updatesite-$VERSION.$BUILDQUALIFIER.zip!/"
146-
echo
147-
read
148-
149-
echo
150-
echo "Publishing now..."
151-
git checkout master
152-
git branch -D pmd-eclipse-plugin-rb-$VERSION
153-
git push origin master
154-
git push origin tag $VERSION.$BUILDQUALIFIER
155-
echo
156-
echo
157-
158-
echo
159-
echo Update the marketplace entry with the new version:
160-
echo https://marketplace.eclipse.org/content/pmd-eclipse-plugin
161-
echo
162-
163-
echo Done.
103+
See `do-release.sh`.
164104

165105
Verify, that the zipped update site has been uploaded to
166106
[GitHub Releases](https://github.com/pmd/pmd-eclipse-plugin/releases) and [sourceforge](https://pmd.github.io/pmd-eclipse-plugin-p2-site/)

do-release.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ CURRENT_BRANCH=$(git symbolic-ref -q HEAD)
5050
CURRENT_BRANCH=${CURRENT_BRANCH##refs/heads/}
5151
CURRENT_BRANCH=${CURRENT_BRANCH:-HEAD}
5252

53-
# Pick a release BUILDQUALIFIER (e.g. v20170401-0001) and update versions
54-
# E.g. version is: "4.0.13" and BUILDQUALIFIER is "v20170401-0001".
55-
# The complete version of the plugin will be "4.0.13.v20170401-0001
56-
BUILDQUALIFIER=$(date -u +v%Y%m%d-%H%M)
53+
# Pick a release BUILDQUALIFIER (e.g. v20170401-0001-r) and update versions
54+
# E.g. version is: "4.0.13" and BUILDQUALIFIER is "v20170401-0001-r".
55+
# The complete version of the plugin will be "4.0.13.v20170401-0001-r
56+
BUILDQUALIFIER="$(date -u +v%Y%m%d-%H%M)-r"
5757
export BUILDQUALIFIER
5858

5959
echo "RELEASE_VERSION: ${RELEASE_VERSION}.${BUILDQUALIFIER} (this release)"

0 commit comments

Comments
 (0)