|
|
|
|
@ -1,3 +1,51 @@
@@ -1,3 +1,51 @@
|
|
|
|
|
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 |
|
|
|
|
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 |
|
|
|
|
exclude: |
|
|
|
|
- "**/*.effective-pom" |
|
|
|
|
- "**/spring-boot-configuration-docs/**" |
|
|
|
|
- "**/spring-boot-test-support/**" |
|
|
|
|
artifact_set: |
|
|
|
|
- include: |
|
|
|
|
- "/**/spring-boot-docs-*.zip" |
|
|
|
|
properties: |
|
|
|
|
"zip.type": "docs" |
|
|
|
|
"zip.deployed": "false" |
|
|
|
|
resource_types: |
|
|
|
|
- name: artifactory-resource |
|
|
|
|
type: docker-image |
|
|
|
|
@ -23,17 +71,12 @@ resources:
@@ -23,17 +71,12 @@ resources:
|
|
|
|
|
type: git |
|
|
|
|
icon: github-circle |
|
|
|
|
source: |
|
|
|
|
uri: ((github-repo)) |
|
|
|
|
username: ((github-username)) |
|
|
|
|
password: ((github-password)) |
|
|
|
|
branch: ((branch)) |
|
|
|
|
<<: *git-repo-resource-source |
|
|
|
|
- name: git-repo-windows |
|
|
|
|
type: git |
|
|
|
|
source: |
|
|
|
|
uri: ((github-repo)) |
|
|
|
|
username: ((github-username)) |
|
|
|
|
password: ((github-password)) |
|
|
|
|
branch: ((branch)) |
|
|
|
|
icon: github-circle |
|
|
|
|
source: |
|
|
|
|
<<: *git-repo-resource-source |
|
|
|
|
git_config: |
|
|
|
|
- name: core.autocrlf |
|
|
|
|
value: true |
|
|
|
|
@ -74,26 +117,20 @@ resources:
@@ -74,26 +117,20 @@ resources:
|
|
|
|
|
type: docker-image |
|
|
|
|
icon: docker |
|
|
|
|
source: |
|
|
|
|
<<: *docker-resource-source |
|
|
|
|
repository: ((docker-hub-organization))/spring-boot-ci-image |
|
|
|
|
username: ((docker-hub-username)) |
|
|
|
|
password: ((docker-hub-password)) |
|
|
|
|
tag: 2.2.x |
|
|
|
|
- name: spring-boot-jdk11-ci-image |
|
|
|
|
type: docker-image |
|
|
|
|
icon: docker |
|
|
|
|
source: |
|
|
|
|
<<: *docker-resource-source |
|
|
|
|
repository: ((docker-hub-organization))/spring-boot-jdk11-ci-image |
|
|
|
|
username: ((docker-hub-username)) |
|
|
|
|
password: ((docker-hub-password)) |
|
|
|
|
tag: 2.2.x |
|
|
|
|
- name: spring-boot-jdk14-ci-image |
|
|
|
|
type: docker-image |
|
|
|
|
icon: docker |
|
|
|
|
source: |
|
|
|
|
<<: *docker-resource-source |
|
|
|
|
repository: ((docker-hub-organization))/spring-boot-jdk14-ci-image |
|
|
|
|
username: ((docker-hub-username)) |
|
|
|
|
password: ((docker-hub-password)) |
|
|
|
|
tag: 2.2.x |
|
|
|
|
- name: artifactory-repo |
|
|
|
|
type: artifactory-resource |
|
|
|
|
icon: package-variant |
|
|
|
|
@ -170,22 +207,14 @@ jobs:
@@ -170,22 +207,14 @@ jobs:
|
|
|
|
|
- task: detect-jdk8-update |
|
|
|
|
file: git-repo/ci/tasks/detect-jdk-updates.yml |
|
|
|
|
params: |
|
|
|
|
GITHUB_REPO: spring-boot |
|
|
|
|
GITHUB_ORGANIZATION: spring-projects |
|
|
|
|
GITHUB_PASSWORD: ((github-password)) |
|
|
|
|
GITHUB_USERNAME: ((github-username)) |
|
|
|
|
<<: *github-task-params |
|
|
|
|
JDK_VERSION: java8 |
|
|
|
|
MILESTONE: ((milestone)) |
|
|
|
|
image: spring-boot-ci-image |
|
|
|
|
- task: detect-jdk11-update |
|
|
|
|
file: git-repo/ci/tasks/detect-jdk-updates.yml |
|
|
|
|
params: |
|
|
|
|
GITHUB_REPO: spring-boot |
|
|
|
|
GITHUB_ORGANIZATION: spring-projects |
|
|
|
|
GITHUB_PASSWORD: ((github-password)) |
|
|
|
|
GITHUB_USERNAME: ((github-username)) |
|
|
|
|
<<: *github-task-params |
|
|
|
|
JDK_VERSION: java11 |
|
|
|
|
MILESTONE: ((milestone)) |
|
|
|
|
image: spring-boot-ci-image |
|
|
|
|
- task: detect-jdk14-update |
|
|
|
|
file: git-repo/ci/tasks/detect-jdk-updates.yml |
|
|
|
|
@ -207,11 +236,7 @@ jobs:
@@ -207,11 +236,7 @@ jobs:
|
|
|
|
|
- task: detect-ubuntu-image-updates |
|
|
|
|
file: git-repo/ci/tasks/detect-ubuntu-image-updates.yml |
|
|
|
|
params: |
|
|
|
|
GITHUB_REPO: spring-boot |
|
|
|
|
GITHUB_ORGANIZATION: spring-projects |
|
|
|
|
GITHUB_PASSWORD: ((github-password)) |
|
|
|
|
GITHUB_USERNAME: ((github-username)) |
|
|
|
|
MILESTONE: ((milestone)) |
|
|
|
|
<<: *github-task-params |
|
|
|
|
image: spring-boot-ci-image |
|
|
|
|
- name: detect-docker-updates |
|
|
|
|
plan: |
|
|
|
|
@ -223,11 +248,7 @@ jobs:
@@ -223,11 +248,7 @@ jobs:
|
|
|
|
|
- task: detect-docker-updates |
|
|
|
|
file: git-repo/ci/tasks/detect-docker-updates.yml |
|
|
|
|
params: |
|
|
|
|
GITHUB_REPO: spring-boot |
|
|
|
|
GITHUB_ORGANIZATION: spring-projects |
|
|
|
|
GITHUB_PASSWORD: ((github-password)) |
|
|
|
|
GITHUB_USERNAME: ((github-username)) |
|
|
|
|
MILESTONE: ((milestone)) |
|
|
|
|
<<: *github-task-params |
|
|
|
|
image: spring-boot-ci-image |
|
|
|
|
- name: build |
|
|
|
|
serial: true |
|
|
|
|
@ -240,10 +261,8 @@ jobs:
@@ -240,10 +261,8 @@ jobs:
|
|
|
|
|
params: { state: "pending", commit: "git-repo" } |
|
|
|
|
- do: |
|
|
|
|
- task: build-project |
|
|
|
|
privileged: true |
|
|
|
|
timeout: ((task-timeout)) |
|
|
|
|
<<: *build-project-task-params |
|
|
|
|
image: spring-boot-ci-image |
|
|
|
|
file: git-repo/ci/tasks/build-project.yml |
|
|
|
|
- in_parallel: |
|
|
|
|
- task: build-smoke-tests |
|
|
|
|
timeout: ((task-timeout)) |
|
|
|
|
@ -270,22 +289,8 @@ jobs:
@@ -270,22 +289,8 @@ jobs:
|
|
|
|
|
- put: repo-status-build |
|
|
|
|
params: { state: "success", commit: "git-repo" } |
|
|
|
|
- put: artifactory-repo |
|
|
|
|
params: &artifactory-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 |
|
|
|
|
exclude: |
|
|
|
|
- "**/*.effective-pom" |
|
|
|
|
- "**/spring-boot-configuration-docs/**" |
|
|
|
|
- "**/spring-boot-test-support/**" |
|
|
|
|
artifact_set: |
|
|
|
|
- include: |
|
|
|
|
- "/**/spring-boot-docs-*.zip" |
|
|
|
|
properties: |
|
|
|
|
"zip.type": "docs" |
|
|
|
|
"zip.deployed": "false" |
|
|
|
|
params: |
|
|
|
|
<<: *artifactory-repo-put-params |
|
|
|
|
on_failure: |
|
|
|
|
do: |
|
|
|
|
- put: slack-alert |
|
|
|
|
@ -352,10 +357,8 @@ jobs:
@@ -352,10 +357,8 @@ jobs:
|
|
|
|
|
params: { state: "pending", commit: "git-repo" } |
|
|
|
|
- do: |
|
|
|
|
- task: build-project |
|
|
|
|
privileged: true |
|
|
|
|
timeout: ((task-timeout)) |
|
|
|
|
<<: *build-project-task-params |
|
|
|
|
image: spring-boot-jdk11-ci-image |
|
|
|
|
file: git-repo/ci/tasks/build-project.yml |
|
|
|
|
- in_parallel: |
|
|
|
|
- task: build-smoke-tests |
|
|
|
|
timeout: ((task-timeout)) |
|
|
|
|
@ -474,7 +477,7 @@ jobs:
@@ -474,7 +477,7 @@ jobs:
|
|
|
|
|
RELEASE_TYPE: M |
|
|
|
|
- put: artifactory-repo |
|
|
|
|
params: |
|
|
|
|
<<: *artifactory-params |
|
|
|
|
<<: *artifactory-repo-put-params |
|
|
|
|
repo: libs-staging-local |
|
|
|
|
- put: git-repo |
|
|
|
|
params: |
|
|
|
|
@ -492,7 +495,7 @@ jobs:
@@ -492,7 +495,7 @@ jobs:
|
|
|
|
|
RELEASE_TYPE: RC |
|
|
|
|
- put: artifactory-repo |
|
|
|
|
params: |
|
|
|
|
<<: *artifactory-params |
|
|
|
|
<<: *artifactory-repo-put-params |
|
|
|
|
repo: libs-staging-local |
|
|
|
|
- put: git-repo |
|
|
|
|
params: |
|
|
|
|
@ -510,7 +513,7 @@ jobs:
@@ -510,7 +513,7 @@ jobs:
|
|
|
|
|
RELEASE_TYPE: RELEASE |
|
|
|
|
- put: artifactory-repo |
|
|
|
|
params: |
|
|
|
|
<<: *artifactory-params |
|
|
|
|
<<: *artifactory-repo-put-params |
|
|
|
|
repo: libs-staging-local |
|
|
|
|
- put: git-repo |
|
|
|
|
params: |
|
|
|
|
@ -532,9 +535,7 @@ jobs:
@@ -532,9 +535,7 @@ jobs:
|
|
|
|
|
file: git-repo/ci/tasks/promote.yml |
|
|
|
|
params: |
|
|
|
|
RELEASE_TYPE: M |
|
|
|
|
ARTIFACTORY_SERVER: ((artifactory-server)) |
|
|
|
|
ARTIFACTORY_USERNAME: ((artifactory-username)) |
|
|
|
|
ARTIFACTORY_PASSWORD: ((artifactory-password)) |
|
|
|
|
<<: *artifactory-task-params |
|
|
|
|
- task: generate-release-notes |
|
|
|
|
file: git-repo/ci/tasks/generate-release-notes.yml |
|
|
|
|
params: |
|
|
|
|
@ -563,9 +564,7 @@ jobs:
@@ -563,9 +564,7 @@ jobs:
|
|
|
|
|
file: git-repo/ci/tasks/promote.yml |
|
|
|
|
params: |
|
|
|
|
RELEASE_TYPE: RC |
|
|
|
|
ARTIFACTORY_SERVER: ((artifactory-server)) |
|
|
|
|
ARTIFACTORY_USERNAME: ((artifactory-username)) |
|
|
|
|
ARTIFACTORY_PASSWORD: ((artifactory-password)) |
|
|
|
|
<<: *artifactory-task-params |
|
|
|
|
- task: generate-release-notes |
|
|
|
|
file: git-repo/ci/tasks/generate-release-notes.yml |
|
|
|
|
params: |
|
|
|
|
@ -594,13 +593,8 @@ jobs:
@@ -594,13 +593,8 @@ jobs:
|
|
|
|
|
file: git-repo/ci/tasks/promote.yml |
|
|
|
|
params: |
|
|
|
|
RELEASE_TYPE: RELEASE |
|
|
|
|
ARTIFACTORY_SERVER: ((artifactory-server)) |
|
|
|
|
ARTIFACTORY_USERNAME: ((artifactory-username)) |
|
|
|
|
ARTIFACTORY_PASSWORD: ((artifactory-password)) |
|
|
|
|
BINTRAY_SUBJECT: ((bintray-subject)) |
|
|
|
|
BINTRAY_REPO: ((bintray-repo)) |
|
|
|
|
BINTRAY_USERNAME: ((bintray-username)) |
|
|
|
|
BINTRAY_API_KEY: ((bintray-api-key)) |
|
|
|
|
<<: *artifactory-task-params |
|
|
|
|
<<: *bintray-task-params |
|
|
|
|
- name: sync-to-maven-central |
|
|
|
|
serial: true |
|
|
|
|
plan: |
|
|
|
|
@ -616,12 +610,8 @@ jobs:
@@ -616,12 +610,8 @@ jobs:
|
|
|
|
|
image: spring-boot-ci-image |
|
|
|
|
file: git-repo/ci/tasks/sync-to-maven-central.yml |
|
|
|
|
params: |
|
|
|
|
BINTRAY_USERNAME: ((bintray-username)) |
|
|
|
|
BINTRAY_API_KEY: ((bintray-api-key)) |
|
|
|
|
SONATYPE_USER_TOKEN: ((sonatype-user-token)) |
|
|
|
|
SONATYPE_PASSWORD_TOKEN: ((sonatype-user-token-password)) |
|
|
|
|
BINTRAY_SUBJECT: ((bintray-subject)) |
|
|
|
|
BINTRAY_REPO: ((bintray-repo)) |
|
|
|
|
<<: *bintray-task-params |
|
|
|
|
<<: *sonatype-task-params |
|
|
|
|
- task: generate-release-notes |
|
|
|
|
file: git-repo/ci/tasks/generate-release-notes.yml |
|
|
|
|
params: |
|
|
|
|
|