10 changed files with 152 additions and 6 deletions
-
2DEVLOPMENT.md
-
18changeTagToDev.sh
-
18changeTagToFinal.sh
-
26changeTagToMilestone.sh
-
18changeTagToSnapshot.sh
-
5createBuildRelease.sh
-
30createMajorRelease.sh
-
30createMinorRelease.sh
-
6createPatchRelease.sh
-
5createTestRelease.sh
@ -0,0 +1,18 @@ |
|||
#!/bin/bash |
|||
#Update the release version of the project |
|||
#version string will look similar to this: 0.1.0-DEV-27-060aec7 |
|||
VERSION=$(head -1 ./version.info) |
|||
|
|||
#do work on the version to get the correct info |
|||
#we need the version string from above to look like this: 0.1.1-DEV |
|||
IFS='.' read -a arr <<< "$VERSION" |
|||
#results in [0,1,0-DEV-27-060aec7] |
|||
IFS='-' read -a arr2 <<< "${arr[2]}" |
|||
#results in [0,DEV,27,060aec7] |
|||
VERSION="${arr[0]}.${arr[1]}.${arr2[0]}-DEV" |
|||
#echo $VERSION |
|||
|
|||
#update the POM |
|||
mvn versions:set -DnewVersion=$VERSION |
|||
|
|||
echo "$VERSION" > version.info |
|||
@ -0,0 +1,18 @@ |
|||
#!/bin/bash |
|||
#Update the release version of the project |
|||
#version string will look similar to this: 0.1.0-DEV-27-060aec7 |
|||
VERSION=$(head -1 ./version.info) |
|||
|
|||
#do work on the version to get the correct info |
|||
#we need the version string from above to look like this: 0.1.1-DEV |
|||
IFS='.' read -a arr <<< "$VERSION" |
|||
#results in [0,1,0-DEV-27-060aec7] |
|||
IFS='-' read -a arr2 <<< "${arr[2]}" |
|||
#results in [0,DEV,27,060aec7] |
|||
VERSION="${arr[0]}.${arr[1]}.${arr2[0]}-DEV" |
|||
#echo $VERSION |
|||
|
|||
#update the POM |
|||
mvn versions:set -DnewVersion=$VERSION |
|||
|
|||
echo "$VERSION" > version.info |
|||
@ -0,0 +1,26 @@ |
|||
#!/bin/bash |
|||
#Update the release version of the project |
|||
#version string will look similar to this: 0.1.0-DEV-27-060aec7 |
|||
VERSION=$(head -1 ./version.info) |
|||
|
|||
#do work on the version to get the correct info |
|||
#we need the version string from above to look like this: 0.1.1-DEV |
|||
IFS='.' read -a arr <<< "$VERSION" |
|||
#results in [0,1,0-DEV-27-060aec7] |
|||
IFS='-' read -a arr2 <<< "${arr[2]}" |
|||
#results in [0,DEV,27,060aec7] |
|||
MVERSIONTEMP=0 |
|||
#determine the milestone version |
|||
if [ "${arr2[1]:0:1}" = "M" ] |
|||
then |
|||
MVERSIONTEMP=${arr2[1]:1} |
|||
fi |
|||
#increment the milestone vesrion |
|||
let MVERSION=${MVERSIONTEMP}+1 |
|||
VERSION="${arr[0]}.${arr[1]}.${arr2[0]}-M$MVERSION" |
|||
echo $VERSION |
|||
|
|||
#update the POM |
|||
mvn versions:set -DnewVersion=$VERSION |
|||
|
|||
echo "$VERSION" > version.info |
|||
@ -0,0 +1,18 @@ |
|||
#!/bin/bash |
|||
#Update the release version of the project |
|||
#version string will look similar to this: 0.1.0-DEV-27-060aec7 |
|||
VERSION=$(head -1 ./version.info) |
|||
|
|||
#do work on the version to get the correct info |
|||
#we need the version string from above to look like this: 0.1.1-DEV |
|||
IFS='.' read -a arr <<< "$VERSION" |
|||
#results in [0,1,0-DEV-27-060aec7] |
|||
IFS='-' read -a arr2 <<< "${arr[2]}" |
|||
#results in [0,DEV,27,060aec7] |
|||
VERSION="${arr[0]}.${arr[1]}.${arr2[0]}-SNAPSHOT" |
|||
#echo $VERSION |
|||
|
|||
#update the POM |
|||
mvn versions:set -DnewVersion=$VERSION |
|||
|
|||
echo "$VERSION" > version.info |
|||
@ -0,0 +1,5 @@ |
|||
#!/bin/bash |
|||
#Do not change versions as this is a build release with artifacts |
|||
#Build and package the current version |
|||
. build.sh |
|||
. package.sh |
|||
@ -0,0 +1,30 @@ |
|||
#!/bin/bash |
|||
#Update the release version of the project |
|||
#version string will look similar to this: 0.1.0-DEV-27-060aec7 |
|||
VERSION=$(head -1 ./version.info) |
|||
|
|||
#do work on the version to get the correct info |
|||
#we need the version string from above to look like this: 0.1.1-DEV |
|||
IFS='.' read -a arr <<< "$VERSION" |
|||
#results in [0,1,0-DEV-27-060aec7] |
|||
IFS='-' read -a arr2 <<< "${arr[2]}" |
|||
#results in [0,DEV,27,060aec7] |
|||
let major=${arr[0]}+1 |
|||
#echo $major |
|||
VERSION="$major.0.0-${arr2[1]}" |
|||
#echo $VERSION |
|||
|
|||
#update the POM |
|||
mvn versions:set -DnewVersion=$VERSION |
|||
|
|||
#commit the new patch version |
|||
git commit -a . -m "Creating major version $VERSION" |
|||
|
|||
#tag the build |
|||
git tag -a v$VERSION -m "Major Release Version $VERSION" |
|||
|
|||
#push the build and tag |
|||
git push --follow-tags |
|||
|
|||
. build.sh |
|||
. package.sh |
|||
@ -0,0 +1,30 @@ |
|||
#!/bin/bash |
|||
#Update the release version of the project |
|||
#version string will look similar to this: 0.1.0-DEV-27-060aec7 |
|||
VERSION=$(head -1 ./version.info) |
|||
|
|||
#do work on the version to get the correct info |
|||
#we need the version string from above to look like this: 0.1.1-DEV |
|||
IFS='.' read -a arr <<< "$VERSION" |
|||
#results in [0,1,0-DEV-27-060aec7] |
|||
IFS='-' read -a arr2 <<< "${arr[2]}" |
|||
#results in [0,DEV,27,060aec7] |
|||
let minor=${arr[1]}+1 |
|||
#echo $minor |
|||
VERSION="${arr[0]}.$minor.0-${arr2[1]}" |
|||
#echo $VERSION |
|||
|
|||
#update the POM |
|||
mvn versions:set -DnewVersion=$VERSION |
|||
|
|||
#commit the new patch version |
|||
git commit -a . -m "Creating minor version $VERSION" |
|||
|
|||
#tag the build |
|||
git tag -a v$VERSION -m "Minor Release Version $VERSION" |
|||
|
|||
#push the build and tag |
|||
git push --follow-tags |
|||
|
|||
. build.sh |
|||
. package.sh |
|||
@ -1,5 +0,0 @@ |
|||
#!/bin/bash |
|||
#Do not change versions as this is a test build with artifacts |
|||
#Build and package the current version |
|||
. build.sh |
|||
. package.sh |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue