Skip to content
Snippets Groups Projects
Commit b3fd66a1 authored by OZGCloud's avatar OZGCloud
Browse files

Releaseerstellung Support Scripte

parent f6346a31
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
set -x
#set -x
if [ "$#" -ne 1 ]; then
echo "Aufruf: ozg-release-startdev.sh NEWVERSION"
......@@ -9,6 +9,8 @@ fi
NEWVERSION=$1
echo
# pom.xml:main -> project.version setzen
# projectname/pom.xml:parent -> project.parent.version setzen
# projectname/pom.xml:parent,main -> project.parent.version und project.version setzen
......@@ -19,10 +21,15 @@ PROJECTS="pom.xml:main
for PROJECT in $PROJECTS;
do
echo $PROJECT
POMFILE=$(echo $PROJECT | cut -d':' -f1)
ACTIONS=$(echo $PROJECT | cut -d':' -f2)
## Auf SNAPSHOT Versionen testen
if fgrep -q "SNAPSHOT" $POMFILE; then
echo "WARNUNG: Datei "$POMFILE" enthält noch SNAPSHOT Versionen, das sollte hier nicht passieren."
fi
## Versionen setzen
if [[ $ACTIONS == *"main"* ]] ; then
xmlstarlet ed --pf -L -N w="http://maven.apache.org/POM/4.0.0" -u '//w:project/w:version' -v $NEWVERSION $POMFILE
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment