include: local: "templates/java/java-common-db.gitlab-ci.yml" .maven-database-diff: extends: - .database-diff-common image: $MAVEN_IMAGE variables: MAVEN_EXTRA_OPTS: "" PATH_TO_DIFF: "target/db-diff.xml" before_script: - > if [ "$BACKEND_DIR" != "" ]; then cd $BACKEND_DIR fi script: - mvn compile liquibase:update liquibase:diff $MAVEN_EXTRA_OPTS artifacts: when: on_failure expire_in: 2 weeks paths: - $BACKEND_DIR/target/db-diff.xml