diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 0c55886dfbe7..c4e2af2e9b21 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -205,11 +205,11 @@ jobs: - put: repo-status-jdk11-build params: { state: "pending", commit: "git-repo" } - do: - - task: build-project + - task: check-project privileged: true timeout: ((task-timeout)) image: spring-framework-jdk11-ci-image - file: git-repo/ci/tasks/build-project.yml + file: git-repo/ci/tasks/check-project.yml params: BRANCH: ((branch)) GRADLE_ENTERPRISE_ACCESS_KEY: ((gradle_enterprise_secret_access_key)) @@ -237,11 +237,11 @@ jobs: - put: repo-status-jdk14-build params: { state: "pending", commit: "git-repo" } - do: - - task: build-project + - task: check-project privileged: true timeout: ((task-timeout)) image: spring-framework-jdk14-ci-image - file: git-repo/ci/tasks/build-project.yml + file: git-repo/ci/tasks/check-project.yml params: BRANCH: ((branch)) GRADLE_ENTERPRISE_ACCESS_KEY: ((gradle_enterprise_secret_access_key)) @@ -269,11 +269,11 @@ jobs: - put: repo-status-jdk15-build params: { state: "pending", commit: "git-repo" } - do: - - task: build-project + - task: check-project privileged: true timeout: ((task-timeout)) image: spring-framework-jdk15-ci-image - file: git-repo/ci/tasks/build-project.yml + file: git-repo/ci/tasks/check-project.yml params: BRANCH: ((branch)) GRADLE_ENTERPRISE_ACCESS_KEY: ((gradle_enterprise_secret_access_key)) diff --git a/ci/scripts/check-project.sh b/ci/scripts/check-project.sh new file mode 100755 index 000000000000..94c4e8df65b4 --- /dev/null +++ b/ci/scripts/check-project.sh @@ -0,0 +1,8 @@ +#!/bin/bash +set -e + +source $(dirname $0)/common.sh + +pushd git-repo > /dev/null +./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --max-workers=4 check +popd > /dev/null diff --git a/ci/tasks/check-project.yml b/ci/tasks/check-project.yml new file mode 100644 index 000000000000..c519e7dc3b66 --- /dev/null +++ b/ci/tasks/check-project.yml @@ -0,0 +1,21 @@ +--- +platform: linux +inputs: +- name: git-repo +outputs: +- name: distribution-repository +caches: +- path: gradle +params: + BRANCH: + CI: true + GRADLE_ENTERPRISE_ACCESS_KEY: + GRADLE_ENTERPRISE_CACHE_USERNAME: + GRADLE_ENTERPRISE_CACHE_PASSWORD: + GRADLE_ENTERPRISE_URL: https://ge.spring.io +run: + path: bash + args: + - -ec + - | + ${PWD}/git-repo/ci/scripts/check-project.sh