diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 966f864b84792812243a72b4721feabf96537d2e..10d65cc99a69b32b192268a649aa9e64206dcff6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -173,7 +173,7 @@ upload-and-tag-release:
     # Set release version and deploy. Commit, tag and push.
     - &release_and_tag # Change version in pom.xml - build new pom_with_models.xml
       - "./mvnw $MAVEN_CLI_OPTS $MAVEN_OPTS validate -DremoveSnapshot"
-      - "python build_pom_with_models.py"
+      - "python3 build_pom_with_models.py"
       - export RELEASE_VERSION=$(./mvnw $MAVEN_POM_WITH_MODELS $MAVEN_CLI_OPTS $MAVEN_OPTS --batch-mode --no-transfer-progress --non-recursive help:evaluate -Dexpression=project.version | grep -v "\[.*")
       - echo "New version in release '$RELEASE_VERSION'"
       - export RELEASE_TAG="v${RELEASE_VERSION}"