2017-09-29 01:57:35 +08:00
resource_types :
- name : artifactory-resource
type : docker-image
source :
repository : springio/artifactory-resource
2017-11-29 08:23:02 +08:00
tag : 0.0 .3
2017-09-29 01:57:35 +08:00
- name : email
type : docker-image
source :
repository : pcfseceng/email-resource
2017-10-13 07:10:20 +08:00
- name : pull-request
type : docker-image
source :
repository : jtarchie/pr
2018-04-11 02:56:53 +08:00
- name : github-status-resource
type : docker-image
source :
repository : dpb587/github-status-resource
tag : master
2018-05-03 08:19:36 +08:00
- name : slack-notification
type : docker-image
source :
repository : cfcommunity/slack-notification-resource
tag : latest
2017-09-29 01:57:35 +08:00
resources :
- name : git-repo
type : git
source :
uri : ((github-repo))
username : ((github-username))
password : ((github-password))
branch : ((branch))
ignore_paths : [ "ci/images/*" ]
2018-04-10 23:46:44 +08:00
- name : ci-images-git-repo
type : git
source :
uri : ((github-repo))
branch : ((branch))
paths : [ "ci/images/*" ]
2017-09-29 01:57:35 +08:00
- name : spring-boot-ci-image
type : docker-image
source :
repository : ((docker-hub-organization))/spring-boot-ci-image
username : ((docker-hub-username))
password : ((docker-hub-password))
tag : ((branch))
- name : spring-boot-jdk9-ci-image
type : docker-image
source :
repository : ((docker-hub-organization))/spring-boot-jdk9-ci-image
username : ((docker-hub-username))
password : ((docker-hub-password))
tag : ((branch))
2018-03-02 22:18:51 +08:00
- name : spring-boot-jdk10-ci-image
type : docker-image
source :
repository : ((docker-hub-organization))/spring-boot-jdk10-ci-image
username : ((docker-hub-username))
password : ((docker-hub-password))
tag : ((branch))
2017-09-29 01:57:35 +08:00
- name : artifactory-repo
type : artifactory-resource
source :
uri : ((artifactory-server))
username : ((artifactory-username))
password : ((artifactory-password))
build_name : ((build-name))
- name : email-notification
type : email
source :
smtp :
host : ((email-server))
port : "25"
anonymous : true
skip_ssl_validation : true
from : ((email-from))
to : ((email-to))
2018-04-11 02:56:53 +08:00
- name : repo-status-build
type : github-status-resource
source :
repository : ((github-repo-name))
access_token : ((github-access-token))
branch : ((branch))
context : build
- name : repo-status-jdk9-build
type : github-status-resource
source :
repository : ((github-repo-name))
access_token : ((github-access-token))
branch : ((branch))
context : jdk9-build
- name : repo-status-jdk10-build
type : github-status-resource
source :
repository : ((github-repo-name))
access_token : ((github-access-token))
branch : ((branch))
context : jdk10-build
2018-05-03 08:19:36 +08:00
- name : slack-alert
type : slack-notification
source :
url : ((slack-webhook-url))
2017-09-29 01:57:35 +08:00
jobs :
2018-04-10 23:46:44 +08:00
- name : build-spring-boot-ci-images
plan :
- get : ci-images-git-repo
trigger : true
- put : spring-boot-ci-image
params :
build : ci-images-git-repo/ci/images/spring-boot-ci-image
- put : spring-boot-jdk9-ci-image
params :
build : ci-images-git-repo/ci/images/spring-boot-jdk9-ci-image
- put : spring-boot-jdk10-ci-image
params :
build : ci-images-git-repo/ci/images/spring-boot-jdk10-ci-image
2017-09-29 01:57:35 +08:00
- name : build
serial : true
2017-11-07 07:26:46 +08:00
public : true
2017-09-29 01:57:35 +08:00
plan :
- get : spring-boot-ci-image
- get : git-repo
trigger : true
2018-04-11 02:56:53 +08:00
- put : repo-status-build
params : { state : "pending" , commit : "git-repo" }
2017-09-29 01:57:35 +08:00
- do :
- task : build-project
2018-01-04 09:23:12 +08:00
privileged : true
2017-09-29 01:57:35 +08:00
timeout : 1h30m
image : spring-boot-ci-image
file : git-repo/ci/tasks/build-project.yml
- aggregate :
- task : build-samples
timeout : 1h30m
image : spring-boot-ci-image
file : git-repo/ci/tasks/build-samples.yml
- task : build-integration-tests
timeout : 1h30m
image : spring-boot-ci-image
file : git-repo/ci/tasks/build-integration-tests.yml
- task : build-deployment-tests
timeout : 1h30m
image : spring-boot-ci-image
file : git-repo/ci/tasks/build-deployment-tests.yml
on_failure :
2018-04-11 02:56:53 +08:00
do :
- put : repo-status-build
params : { state : "failure" , commit : "git-repo" }
2018-04-12 04:41:52 +08:00
- task : determine-email-body
image : spring-boot-ci-image
file : git-repo/ci/tasks/determine-email-body.yml
params :
STATE : failure
2018-04-12 09:09:08 +08:00
BUILD_PIPELINE_NAME : ((pipeline-name))
BUILD_JOB_NAME : build
CONCOURSE_URL : ((concourse-url))
2018-04-20 01:37:40 +08:00
ACCESS_TOKEN : ((github-access-token))
2018-04-11 02:56:53 +08:00
- put : email-notification
params :
2018-04-12 04:41:52 +08:00
subject : email-details/subject
body : email-details/body
2018-05-03 08:19:36 +08:00
- put : slack-alert
params :
2018-05-08 16:58:33 +08:00
text : ":concourse-failed: <https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME} failed!>"
2018-05-03 08:19:36 +08:00
silent : true
icon_emoji : ":concourse:"
username : concourse-ci
2018-04-12 04:41:52 +08:00
- do :
- task : determine-email-body
image : spring-boot-ci-image
file : git-repo/ci/tasks/determine-email-body.yml
params :
STATE : success
2018-04-12 09:09:08 +08:00
BUILD_PIPELINE_NAME : ((pipeline-name))
BUILD_JOB_NAME : build
CONCOURSE_URL : ((concourse-url))
2018-04-20 01:37:40 +08:00
ACCESS_TOKEN : ((github-access-token))
2018-04-11 02:56:53 +08:00
- put : repo-status-build
params : { state : "success" , commit : "git-repo" }
2018-04-12 04:41:52 +08:00
- put : email-notification
params :
subject : email-details/subject
body : email-details/body
2018-05-03 08:19:36 +08:00
- put : slack-alert
params :
2018-05-08 16:58:33 +08:00
text : ":concourse-succeeded: <https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME} was successful!>"
2018-05-03 08:19:36 +08:00
silent : true
icon_emoji : ":concourse:"
username : concourse-ci
2017-09-29 01:57:35 +08:00
- put : artifactory-repo
params : &artifactory-params
repo : libs-snapshot-local
build_number : "${BUILD_ID}"
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}"
2017-10-08 22:51:01 +08:00
disable_checksum_uploads : true
2018-03-29 04:42:41 +08:00
exclude :
2018-03-29 09:53:16 +08:00
- "**/*.effective-pom"
2017-09-29 01:57:35 +08:00
artifact_set :
- include :
- "/**/spring-boot-docs-*.zip"
properties :
2017-10-12 09:43:46 +08:00
"zip.type": "docs"
"zip.deployed": "false"
2017-09-29 01:57:35 +08:00
- name : jdk9-build
serial : true
2017-11-07 07:26:46 +08:00
public : true
2017-09-29 01:57:35 +08:00
plan :
- get : spring-boot-jdk9-ci-image
- get : git-repo
2017-10-16 19:03:30 +08:00
trigger : true
2018-04-11 02:56:53 +08:00
- put : repo-status-jdk9-build
params : { state : "pending" , commit : "git-repo" }
2017-09-29 01:57:35 +08:00
- do :
- task : build-project
2018-01-04 09:23:12 +08:00
privileged : true
2017-09-29 01:57:35 +08:00
timeout : 1h30m
image : spring-boot-jdk9-ci-image
file : git-repo/ci/tasks/build-project.yml
- aggregate :
- task : build-samples
timeout : 1h30m
image : spring-boot-jdk9-ci-image
file : git-repo/ci/tasks/build-samples.yml
- task : build-integration-tests
timeout : 1h30m
image : spring-boot-jdk9-ci-image
file : git-repo/ci/tasks/build-integration-tests.yml
- task : build-deployment-tests
timeout : 1h30m
image : spring-boot-jdk9-ci-image
file : git-repo/ci/tasks/build-deployment-tests.yml
on_failure :
2018-04-11 02:56:53 +08:00
do :
- put : repo-status-jdk9-build
params : { state : "failure" , commit : "git-repo" }
2018-04-13 00:45:06 +08:00
- task : determine-email-body
2018-04-13 01:10:04 +08:00
image : spring-boot-jdk9-ci-image
2018-04-13 00:45:06 +08:00
file : git-repo/ci/tasks/determine-email-body.yml
params :
STATE : failure
BUILD_PIPELINE_NAME : ((pipeline-name))
BUILD_JOB_NAME : jdk9-build
CONCOURSE_URL : ((concourse-url))
2018-04-20 01:37:40 +08:00
ACCESS_TOKEN : ((github-access-token))
2018-04-11 02:56:53 +08:00
- put : email-notification
params :
2018-04-13 00:45:06 +08:00
subject : email-details/subject
body : email-details/body
2018-05-03 08:19:36 +08:00
- put : slack-alert
params :
2018-05-08 16:58:33 +08:00
text : ":concourse-failed: <https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME} failed!>"
2018-05-03 08:19:36 +08:00
silent : true
icon_emoji : ":concourse:"
username : concourse-ci
2018-04-13 00:45:06 +08:00
- do :
- task : determine-email-body
2018-04-13 01:10:04 +08:00
image : spring-boot-jdk9-ci-image
2018-04-13 00:45:06 +08:00
file : git-repo/ci/tasks/determine-email-body.yml
params :
STATE : success
BUILD_PIPELINE_NAME : ((pipeline-name))
BUILD_JOB_NAME : jdk9-build
CONCOURSE_URL : ((concourse-url))
2018-04-20 01:37:40 +08:00
ACCESS_TOKEN : ((github-access-token))
2018-04-11 02:56:53 +08:00
- put : repo-status-jdk9-build
params : { state : "success" , commit : "git-repo" }
2018-04-13 00:45:06 +08:00
- put : email-notification
params :
subject : email-details/subject
body : email-details/body
2018-05-03 08:19:36 +08:00
- put : slack-alert
params :
2018-05-08 16:58:33 +08:00
text : ":concourse-succeeded: <https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME} was successful!>"
2018-05-03 08:19:36 +08:00
silent : true
icon_emoji : ":concourse:"
username : concourse-ci
2018-03-02 22:18:51 +08:00
- name : jdk10-build
serial : true
public : true
plan :
- get : spring-boot-jdk10-ci-image
- get : git-repo
trigger : true
2018-04-11 02:56:53 +08:00
- put : repo-status-jdk10-build
params : { state : "pending" , commit : "git-repo" }
2018-03-02 22:18:51 +08:00
- do :
- task : build-project
privileged : true
timeout : 1h30m
image : spring-boot-jdk10-ci-image
file : git-repo/ci/tasks/build-project.yml
- aggregate :
- task : build-samples
timeout : 1h30m
image : spring-boot-jdk10-ci-image
file : git-repo/ci/tasks/build-samples.yml
- task : build-integration-tests
timeout : 1h30m
image : spring-boot-jdk10-ci-image
file : git-repo/ci/tasks/build-integration-tests.yml
- task : build-deployment-tests
timeout : 1h30m
image : spring-boot-jdk10-ci-image
file : git-repo/ci/tasks/build-deployment-tests.yml
on_failure :
2018-04-11 02:56:53 +08:00
do :
- put : repo-status-jdk10-build
params : { state : "failure" , commit : "git-repo" }
2018-04-13 00:45:06 +08:00
- task : determine-email-body
2018-04-13 01:10:04 +08:00
image : spring-boot-jdk10-ci-image
2018-04-13 00:45:06 +08:00
file : git-repo/ci/tasks/determine-email-body.yml
params :
STATE : failure
BUILD_PIPELINE_NAME : ((pipeline-name))
BUILD_JOB_NAME : jdk10-build
CONCOURSE_URL : ((concourse-url))
2018-04-20 01:37:40 +08:00
ACCESS_TOKEN : ((github-access-token))
2018-04-11 02:56:53 +08:00
- put : email-notification
params :
2018-04-13 00:45:06 +08:00
subject : email-details/subject
body : email-details/body
2018-05-03 08:19:36 +08:00
- put : slack-alert
params :
2018-05-08 16:58:33 +08:00
text : ":concourse-failed: <https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME} failed!>"
2018-05-03 08:19:36 +08:00
silent : true
icon_emoji : ":concourse:"
username : concourse-ci
2018-04-13 00:45:06 +08:00
- do :
- task : determine-email-body
2018-04-13 01:10:04 +08:00
image : spring-boot-jdk10-ci-image
2018-04-13 00:45:06 +08:00
file : git-repo/ci/tasks/determine-email-body.yml
params :
STATE : success
BUILD_PIPELINE_NAME : ((pipeline-name))
BUILD_JOB_NAME : jdk10-build
CONCOURSE_URL : ((concourse-url))
2018-04-20 01:37:40 +08:00
ACCESS_TOKEN : ((github-access-token))
2018-04-11 02:56:53 +08:00
- put : repo-status-jdk10-build
params : { state : "success" , commit : "git-repo" }
2018-04-13 00:45:06 +08:00
- put : email-notification
params :
subject : email-details/subject
body : email-details/body
2018-05-03 08:19:36 +08:00
- put : slack-alert
params :
2018-05-08 16:58:33 +08:00
text : ":concourse-succeeded: <https://ci.spring.io/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME}|${BUILD_PIPELINE_NAME} ${BUILD_JOB_NAME} was successful!>"
2018-05-03 08:19:36 +08:00
silent : true
icon_emoji : ":concourse:"
username : concourse-ci
2017-09-29 01:57:35 +08:00
- name : stage-milestone
serial : true
plan :
- get : spring-boot-ci-image
- get : git-repo
trigger : false
- task : stage
image : spring-boot-ci-image
file : git-repo/ci/tasks/stage.yml
params :
RELEASE_TYPE : M
- put : artifactory-repo
params :
<< : *artifactory-params
repo : libs-staging-local
- put : git-repo
params :
repository : stage-git-repo
- name : stage-rc
serial : true
plan :
- get : spring-boot-ci-image
- get : git-repo
trigger : false
- task : stage
image : spring-boot-ci-image
file : git-repo/ci/tasks/stage.yml
params :
RELEASE_TYPE : RC
- put : artifactory-repo
params :
<< : *artifactory-params
repo : libs-staging-local
- put : git-repo
params :
repository : stage-git-repo
- name : stage-release
serial : true
plan :
- get : spring-boot-ci-image
- get : git-repo
trigger : false
- task : stage
image : spring-boot-ci-image
file : git-repo/ci/tasks/stage.yml
params :
RELEASE_TYPE : RELEASE
- put : artifactory-repo
params :
<< : *artifactory-params
repo : libs-staging-local
- put : git-repo
params :
repository : stage-git-repo
- name : promote-milestone
serial : true
plan :
- get : spring-boot-ci-image
- get : git-repo
trigger : false
- get : artifactory-repo
trigger : false
passed : [ stage-milestone]
params :
save_build_info : true
- task : promote
image : spring-boot-ci-image
file : git-repo/ci/tasks/promote.yml
params :
RELEASE_TYPE : M
ARTIFACTORY_SERVER : ((artifactory-server))
ARTIFACTORY_USERNAME : ((artifactory-username))
ARTIFACTORY_PASSWORD : ((artifactory-password))
- name : promote-rc
serial : true
plan :
2018-01-31 07:02:17 +08:00
- get : spring-boot-ci-image
2017-09-29 01:57:35 +08:00
- get : git-repo
trigger : false
- get : artifactory-repo
trigger : false
passed : [ stage-rc]
params :
save_build_info : true
- task : promote
image : spring-boot-ci-image
file : git-repo/ci/tasks/promote.yml
params :
RELEASE_TYPE : RC
ARTIFACTORY_SERVER : ((artifactory-server))
ARTIFACTORY_USERNAME : ((artifactory-username))
ARTIFACTORY_PASSWORD : ((artifactory-password))
- name : promote-release
serial : true
plan :
2018-01-31 07:02:17 +08:00
- get : spring-boot-ci-image
2017-09-29 01:57:35 +08:00
- get : git-repo
trigger : false
- get : artifactory-repo
trigger : false
passed : [ stage-release]
params :
save_build_info : true
- task : promote
image : spring-boot-ci-image
file : git-repo/ci/tasks/promote.yml
params :
RELEASE_TYPE : RELEASE
ARTIFACTORY_SERVER : ((artifactory-server))
ARTIFACTORY_USERNAME : ((artifactory-username))
ARTIFACTORY_PASSWORD : ((artifactory-password))
2018-03-30 06:57:37 +08:00
BINTRAY_SUBJECT : ((bintray-subject))
BINTRAY_REPO : ((bintray-repo))
2018-03-13 08:07:15 +08:00
- name : sync-to-maven-central
serial : true
plan :
- get : spring-boot-ci-image
- get : git-repo
2018-03-30 06:57:37 +08:00
trigger : true
2018-03-13 08:07:15 +08:00
- get : artifactory-repo
trigger : false
passed : [ promote-release]
- task : sync-to-maven-central
image : spring-boot-ci-image
file : git-repo/ci/tasks/sync-to-maven-central.yml
params :
2017-09-29 01:57:35 +08:00
BINTRAY_USERNAME : ((bintray-username))
BINTRAY_PASSWORD : ((bintray-password))
2017-10-16 19:14:16 +08:00
SONATYPE_USERNAME : ((sonatype-username))
SONATYPE_PASSWORD : ((sonatype-password))
2017-09-29 01:57:35 +08:00
BINTRAY_SUBJECT : ((bintray-subject))
BINTRAY_REPO : ((bintray-repo))
groups :
- name : "Build"
2018-03-02 22:18:51 +08:00
jobs : [ "build" , "jdk9-build" , "jdk10-build" ]
2017-09-29 01:57:35 +08:00
- name : "Release"
2018-03-13 08:07:15 +08:00
jobs : [ "stage-milestone" , "stage-rc" , "stage-release" , "promote-milestone" , "promote-rc" , "promote-release" , "sync-to-maven-central" ]
2018-04-10 23:46:44 +08:00
- name : "CI Images"
jobs : [ "build-spring-boot-ci-images" ]