include: local: "templates/java/java-common-db.gitlab-ci.yml" .gradle-database-diff: extends: - .database-diff-common image: $GRADLE_IMAGE variables: GRADLE_EXTRA_OPTS: "" PATH_TO_DIFF: "build/db-diff.xml" script: - > if [ "$BACKEND_DIR" != "" ]; then cd $BACKEND_DIR fi - ./gradlew --build-cache $GRADLE_OPTS liquibase:update liquibase:diff $GRADLE_CLI_OPTS $GRADLE_EXTRA_OPTS artifacts: when: on_failure expire_in: 2 weeks paths: - '**/build/db-diff.xml'