Skip to content
Snippets Groups Projects
Select Git revision
  • 64fdf2823454c8b097051f0373f7ba5188aa9b97
  • main default protected
  • OZG-7856_schadcode_scanner
  • OZG-8314-Alfa-Vorgang-Bearbeiter-Zuweisung-entfernen
  • OZG-8305-Create-webpack-sbom
  • tooltip-improvements
  • release-info
  • release-administration
  • release
  • OZG-7714-UpgradeKeycloakDependencyTo25
  • OZG-8086-Admin-Datenanfrage-erstellen
  • OZG-8086-Datenanfrage-Umbenennung
  • mongodb-7-0-16-e2e
  • OZG-6220-Bescheid-speichern-ohne-Postfach
  • OZG-7922-KeycloakOperatorExceptions
  • OZG-8142-poc-cards
  • OZG-8086-E2E
  • OZG-8086-E2E2
  • OZG-8142-ProjectionStuff
  • OZG-8086-Statistik-Datenanfrage-erstellen
  • ovh-poc-add-image-pull-secret
  • 1.11.0-info
  • 1.11.0-administration
  • 2.26.0-alfa
  • 1.10.0-info
  • 1.10.0-administration
  • 2.25.0-alfa
  • 1.9.0-info
  • 1.9.0-administration
  • 2.24.0-alfa
  • 1.8.0-info
  • 1.8.0-administration
  • 2.23.0-alfa
  • 1.7.0-info
  • 1.7.0-administration
  • 2.22.0-alfa
  • 1.6.0-info
  • 1.6.0-administration
  • 2.21.0-alfa
  • 1.5.0-info
  • 1.5.0-administration
41 results

run_helm_test.sh

Blame
  • release-startdev.sh 1.27 KiB
    #!/bin/bash
    
    #set -x
    
    if [ "$#" -ne 1 ]; then
        echo "Aufruf: ozg-release-startdev.sh NEWVERSION"
        exit 1
    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
    #
    PROJECTS="pom.xml:main 
              goofy-server/pom.xml:parent 
              goofy-client/pom.xml:parent "
    
    for PROJECT in $PROJECTS;
    do
      POMFILE=$(echo $PROJECT | cut -d':' -f1)
      ACTIONS=$(echo $PROJECT | cut -d':' -f2)
    
      ## Auf SNAPSHOT Versionen testen
      if fgrep -q "SNAPSHOT" $POMFILE; then
        RED='\033[0;31m'
        NC='\033[0m'
        echo "${RED}ERROR: Datei "$POMFILE" enthält noch SNAPSHOT Versionen, das sollte hier nicht passieren.${NC}"
        exit 1
      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
    
      if [[ $ACTIONS == *"parent"* ]]; then
        xmlstarlet ed --pf -L -N w="http://maven.apache.org/POM/4.0.0" -u '//w:project/w:parent/w:version' -v $NEWVERSION $POMFILE
      fi
    done
    
    
    
    echo
    echo "NEXT STEPS:"
    echo "***********"
    echo "Änderungen prüfen"
    echo "git commit -a -m 'start development "$NEWVERSION"'"
    echo "git push"