--- /dev/null
+#!/bin/bash
+set -e
+
+source BRANCHES.sh
+
+alias gradle=/opt/gradle/gradle-8.12.1/bin/gradle
+
+for i in $BRANCHES;
+do
+ declare -n branch=${i}
+ git checkout $branch
+ if [ -e 'build.gradle' ]
+ then
+ if [[ $branch =~ "--vorlage" ]]
+ then
+ echo -e "\nIgnoriere Vorlage...\n"
+ else
+ echo -e "\nBuilding $branch"
+ gradle clean
+ gradle buildDockerImage
+ fi
+ else
+ echo -e "\nIgnoriere Branch $branch ohne Projekt...\n"
+ fi
+done
+
+git checkout scripting
--- /dev/null
+#!/bin/bash
+set -e
+
+source BRANCHES.sh
+
+for i in $BRANCHES;
+do
+ declare -n branch=${i}
+ git checkout $branch
+ if [ -e 'pom.xml' ]
+ then
+ if [[ $branch =~ "--vorlage" ]]
+ then
+ echo -e "\nIgnoriere Vorlage...\n"
+ else
+ echo -e "\nBuilding $branch"
+ mvn clean install
+ echo -e "\nPushing Docker image for $branch"
+ mvn docker:push
+ fi
+ else
+ echo -e "\nIgnoriere Branch $branch ohne Projekt...\n"
+ fi
+done
+
+git checkout scripting