Merge branch '2.2.x' into 2.3.x

Closes gh-21877
pull/22035/head
Phillip Webb 5 years ago
commit 8fb3a31ab2

@ -1,3 +1,53 @@
anchors:
git-repo-resource-source: &git-repo-resource-source
uri: ((github-repo))
username: ((github-username))
password: ((github-password))
branch: ((branch))
docker-resource-source: &docker-resource-source
username: ((docker-hub-username))
password: ((docker-hub-password))
tag: ((branch))
build-project-task-params: &build-project-task-params
privileged: true
timeout: ((task-timeout))
file: git-repo/ci/tasks/build-project.yml
params:
BRANCH: ((branch))
GRADLE_ENTERPRISE_ACCESS_KEY: ((gradle_enterprise_secret_access_key))
GRADLE_ENTERPRISE_CACHE_USERNAME: ((gradle_enterprise_cache_user.username))
GRADLE_ENTERPRISE_CACHE_PASSWORD: ((gradle_enterprise_cache_user.password))
github-task-params: &github-task-params
GITHUB_REPO: spring-boot
GITHUB_ORGANIZATION: spring-projects
GITHUB_PASSWORD: ((github-password))
GITHUB_USERNAME: ((github-username))
MILESTONE: ((milestone))
bintray-task-params: &bintray-task-params
BINTRAY_SUBJECT: ((bintray-subject))
BINTRAY_REPO: ((bintray-repo))
BINTRAY_USERNAME: ((bintray-username))
BINTRAY_API_KEY: ((bintray-api-key))
sontatype-task-params: &sonatype-task-params
SONATYPE_USER_TOKEN: ((sonatype-user-token))
SONATYPE_PASSWORD_TOKEN: ((sonatype-user-token-password))
artifactory-task-params: &artifactory-task-params
ARTIFACTORY_SERVER: ((artifactory-server))
ARTIFACTORY_USERNAME: ((artifactory-username))
ARTIFACTORY_PASSWORD: ((artifactory-password))
artifactory-repo-put-params: &artifactory-repo-put-params
repo: libs-snapshot-local
folder: distribution-repository
build_uri: "https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}"
build_number: "${BUILD_PIPELINE_NAME}-${BUILD_JOB_NAME}-${BUILD_NAME}"
disable_checksum_uploads: true
threads: 8
artifact_set:
- include:
- "/**/spring-boot-docs-*.zip"
properties:
"zip.type": "docs"
"zip.deployed": "false"
resource_types: resource_types:
- name: artifactory-resource - name: artifactory-resource
type: docker-image type: docker-image
@ -23,17 +73,12 @@ resources:
type: git type: git
icon: github-circle icon: github-circle
source: source:
uri: ((github-repo)) <<: *git-repo-resource-source
username: ((github-username))
password: ((github-password))
branch: ((branch))
- name: git-repo-windows - name: git-repo-windows
type: git type: git
icon: github-circle
source: source:
uri: ((github-repo)) <<: *git-repo-resource-source
username: ((github-username))
password: ((github-password))
branch: ((branch))
git_config: git_config:
- name: core.autocrlf - name: core.autocrlf
value: true value: true
@ -74,26 +119,20 @@ resources:
type: docker-image type: docker-image
icon: docker icon: docker
source: source:
<<: *docker-resource-source
repository: ((docker-hub-organization))/spring-boot-ci-image repository: ((docker-hub-organization))/spring-boot-ci-image
username: ((docker-hub-username))
password: ((docker-hub-password))
tag: 2.3.x
- name: spring-boot-jdk11-ci-image - name: spring-boot-jdk11-ci-image
type: docker-image type: docker-image
icon: docker icon: docker
source: source:
<<: *docker-resource-source
repository: ((docker-hub-organization))/spring-boot-jdk11-ci-image repository: ((docker-hub-organization))/spring-boot-jdk11-ci-image
username: ((docker-hub-username))
password: ((docker-hub-password))
tag: 2.3.x
- name: spring-boot-jdk14-ci-image - name: spring-boot-jdk14-ci-image
type: docker-image type: docker-image
icon: docker icon: docker
source: source:
<<: *docker-resource-source
repository: ((docker-hub-organization))/spring-boot-jdk14-ci-image repository: ((docker-hub-organization))/spring-boot-jdk14-ci-image
username: ((docker-hub-username))
password: ((docker-hub-password))
tag: 2.3.x
- name: artifactory-repo - name: artifactory-repo
type: artifactory-resource type: artifactory-resource
icon: package-variant icon: package-variant
@ -170,22 +209,14 @@ jobs:
- task: detect-jdk8-update - task: detect-jdk8-update
file: git-repo/ci/tasks/detect-jdk-updates.yml file: git-repo/ci/tasks/detect-jdk-updates.yml
params: params:
GITHUB_REPO: spring-boot <<: *github-task-params
GITHUB_ORGANIZATION: spring-projects
GITHUB_PASSWORD: ((github-password))
GITHUB_USERNAME: ((github-username))
JDK_VERSION: java8 JDK_VERSION: java8
MILESTONE: ((milestone))
image: spring-boot-ci-image image: spring-boot-ci-image
- task: detect-jdk11-update - task: detect-jdk11-update
file: git-repo/ci/tasks/detect-jdk-updates.yml file: git-repo/ci/tasks/detect-jdk-updates.yml
params: params:
GITHUB_REPO: spring-boot <<: *github-task-params
GITHUB_ORGANIZATION: spring-projects
GITHUB_PASSWORD: ((github-password))
GITHUB_USERNAME: ((github-username))
JDK_VERSION: java11 JDK_VERSION: java11
MILESTONE: ((milestone))
image: spring-boot-ci-image image: spring-boot-ci-image
- task: detect-jdk14-update - task: detect-jdk14-update
file: git-repo/ci/tasks/detect-jdk-updates.yml file: git-repo/ci/tasks/detect-jdk-updates.yml
@ -207,11 +238,7 @@ jobs:
- task: detect-ubuntu-image-updates - task: detect-ubuntu-image-updates
file: git-repo/ci/tasks/detect-ubuntu-image-updates.yml file: git-repo/ci/tasks/detect-ubuntu-image-updates.yml
params: params:
GITHUB_REPO: spring-boot <<: *github-task-params
GITHUB_ORGANIZATION: spring-projects
GITHUB_PASSWORD: ((github-password))
GITHUB_USERNAME: ((github-username))
MILESTONE: ((milestone))
image: spring-boot-ci-image image: spring-boot-ci-image
- name: detect-docker-updates - name: detect-docker-updates
plan: plan:
@ -223,11 +250,7 @@ jobs:
- task: detect-docker-updates - task: detect-docker-updates
file: git-repo/ci/tasks/detect-docker-updates.yml file: git-repo/ci/tasks/detect-docker-updates.yml
params: params:
GITHUB_REPO: spring-boot <<: *github-task-params
GITHUB_ORGANIZATION: spring-projects
GITHUB_PASSWORD: ((github-password))
GITHUB_USERNAME: ((github-username))
MILESTONE: ((milestone))
image: spring-boot-ci-image image: spring-boot-ci-image
- name: build - name: build
serial: true serial: true
@ -240,15 +263,8 @@ jobs:
params: { state: "pending", commit: "git-repo" } params: { state: "pending", commit: "git-repo" }
- do: - do:
- task: build-project - task: build-project
privileged: true <<: *build-project-task-params
timeout: ((task-timeout))
image: spring-boot-ci-image image: spring-boot-ci-image
file: git-repo/ci/tasks/build-project.yml
params:
BRANCH: ((branch))
GRADLE_ENTERPRISE_ACCESS_KEY: ((gradle_enterprise_secret_access_key))
GRADLE_ENTERPRISE_CACHE_USERNAME: ((gradle_enterprise_cache_user.username))
GRADLE_ENTERPRISE_CACHE_PASSWORD: ((gradle_enterprise_cache_user.password))
on_failure: on_failure:
do: do:
- put: repo-status-build - put: repo-status-build
@ -266,19 +282,8 @@ jobs:
- put: repo-status-build - put: repo-status-build
params: { state: "success", commit: "git-repo" } params: { state: "success", commit: "git-repo" }
- put: artifactory-repo - put: artifactory-repo
params: &artifactory-params params:
repo: libs-snapshot-local <<: *artifactory-repo-put-params
folder: distribution-repository
build_uri: "https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}"
build_number: "${BUILD_PIPELINE_NAME}-${BUILD_JOB_NAME}-${BUILD_NAME}"
disable_checksum_uploads: true
threads: 8
artifact_set:
- include:
- "/**/spring-boot-docs-*.zip"
properties:
"zip.type": "docs"
"zip.deployed": "false"
get_params: get_params:
threads: 8 threads: 8
on_failure: on_failure:
@ -340,15 +345,8 @@ jobs:
params: { state: "pending", commit: "git-repo" } params: { state: "pending", commit: "git-repo" }
- do: - do:
- task: build-project - task: build-project
privileged: true <<: *build-project-task-params
timeout: ((task-timeout))
image: spring-boot-jdk11-ci-image image: spring-boot-jdk11-ci-image
file: git-repo/ci/tasks/build-project.yml
params:
BRANCH: ((branch))
GRADLE_ENTERPRISE_ACCESS_KEY: ((gradle_enterprise_secret_access_key))
GRADLE_ENTERPRISE_CACHE_USERNAME: ((gradle_enterprise_cache_user.username))
GRADLE_ENTERPRISE_CACHE_PASSWORD: ((gradle_enterprise_cache_user.password))
on_failure: on_failure:
do: do:
- put: repo-status-jdk11-build - put: repo-status-jdk11-build
@ -478,7 +476,7 @@ jobs:
GRADLE_ENTERPRISE_CACHE_PASSWORD: ((gradle_enterprise_cache_user.password)) GRADLE_ENTERPRISE_CACHE_PASSWORD: ((gradle_enterprise_cache_user.password))
- put: artifactory-repo - put: artifactory-repo
params: params:
<<: *artifactory-params <<: *artifactory-repo-put-params
repo: libs-staging-local repo: libs-staging-local
- put: git-repo - put: git-repo
params: params:
@ -499,7 +497,7 @@ jobs:
GRADLE_ENTERPRISE_CACHE_PASSWORD: ((gradle_enterprise_cache_user.password)) GRADLE_ENTERPRISE_CACHE_PASSWORD: ((gradle_enterprise_cache_user.password))
- put: artifactory-repo - put: artifactory-repo
params: params:
<<: *artifactory-params <<: *artifactory-repo-put-params
repo: libs-staging-local repo: libs-staging-local
- put: git-repo - put: git-repo
params: params:
@ -520,7 +518,7 @@ jobs:
GRADLE_ENTERPRISE_CACHE_PASSWORD: ((gradle_enterprise_cache_user.password)) GRADLE_ENTERPRISE_CACHE_PASSWORD: ((gradle_enterprise_cache_user.password))
- put: artifactory-repo - put: artifactory-repo
params: params:
<<: *artifactory-params <<: *artifactory-repo-put-params
repo: libs-staging-local repo: libs-staging-local
- put: git-repo - put: git-repo
params: params:
@ -542,9 +540,7 @@ jobs:
file: git-repo/ci/tasks/promote.yml file: git-repo/ci/tasks/promote.yml
params: params:
RELEASE_TYPE: M RELEASE_TYPE: M
ARTIFACTORY_SERVER: ((artifactory-server)) <<: *artifactory-task-params
ARTIFACTORY_USERNAME: ((artifactory-username))
ARTIFACTORY_PASSWORD: ((artifactory-password))
- task: generate-release-notes - task: generate-release-notes
file: git-repo/ci/tasks/generate-release-notes.yml file: git-repo/ci/tasks/generate-release-notes.yml
params: params:
@ -573,9 +569,7 @@ jobs:
file: git-repo/ci/tasks/promote.yml file: git-repo/ci/tasks/promote.yml
params: params:
RELEASE_TYPE: RC RELEASE_TYPE: RC
ARTIFACTORY_SERVER: ((artifactory-server)) <<: *artifactory-task-params
ARTIFACTORY_USERNAME: ((artifactory-username))
ARTIFACTORY_PASSWORD: ((artifactory-password))
- task: generate-release-notes - task: generate-release-notes
file: git-repo/ci/tasks/generate-release-notes.yml file: git-repo/ci/tasks/generate-release-notes.yml
params: params:
@ -604,13 +598,8 @@ jobs:
file: git-repo/ci/tasks/promote.yml file: git-repo/ci/tasks/promote.yml
params: params:
RELEASE_TYPE: RELEASE RELEASE_TYPE: RELEASE
ARTIFACTORY_SERVER: ((artifactory-server)) <<: *artifactory-task-params
ARTIFACTORY_USERNAME: ((artifactory-username)) <<: *bintray-task-params
ARTIFACTORY_PASSWORD: ((artifactory-password))
BINTRAY_SUBJECT: ((bintray-subject))
BINTRAY_REPO: ((bintray-repo))
BINTRAY_USERNAME: ((bintray-username))
BINTRAY_API_KEY: ((bintray-api-key))
- name: sync-to-maven-central - name: sync-to-maven-central
serial: true serial: true
plan: plan:
@ -626,12 +615,8 @@ jobs:
image: spring-boot-ci-image image: spring-boot-ci-image
file: git-repo/ci/tasks/sync-to-maven-central.yml file: git-repo/ci/tasks/sync-to-maven-central.yml
params: params:
BINTRAY_USERNAME: ((bintray-username)) <<: *bintray-task-params
BINTRAY_API_KEY: ((bintray-api-key)) <<: *sonatype-task-params
SONATYPE_USER_TOKEN: ((sonatype-user-token))
SONATYPE_PASSWORD_TOKEN: ((sonatype-user-token-password))
BINTRAY_SUBJECT: ((bintray-subject))
BINTRAY_REPO: ((bintray-repo))
- task: generate-release-notes - task: generate-release-notes
file: git-repo/ci/tasks/generate-release-notes.yml file: git-repo/ci/tasks/generate-release-notes.yml
params: params:

Loading…
Cancel
Save