Reinstate commit status for concourse builds
Fixes gh-10851
This commit is contained in:
parent
e8fac7d9c4
commit
a09a6f223b
|
@ -12,6 +12,11 @@ resource_types:
|
|||
type: docker-image
|
||||
source:
|
||||
repository: jtarchie/pr
|
||||
- name: github-status-resource
|
||||
type: docker-image
|
||||
source:
|
||||
repository: dpb587/github-status-resource
|
||||
tag: master
|
||||
resources:
|
||||
- name: git-repo
|
||||
type: git
|
||||
|
@ -65,6 +70,27 @@ resources:
|
|||
skip_ssl_validation: true
|
||||
from: ((email-from))
|
||||
to: ((email-to))
|
||||
- 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
|
||||
jobs:
|
||||
- name: build-spring-boot-ci-images
|
||||
plan:
|
||||
|
@ -86,6 +112,8 @@ jobs:
|
|||
- get: spring-boot-ci-image
|
||||
- get: git-repo
|
||||
trigger: true
|
||||
- put: repo-status-build
|
||||
params: { state: "pending", commit: "git-repo" }
|
||||
- do:
|
||||
- task: build-project
|
||||
privileged: true
|
||||
|
@ -106,10 +134,15 @@ jobs:
|
|||
image: spring-boot-ci-image
|
||||
file: git-repo/ci/tasks/build-deployment-tests.yml
|
||||
on_failure:
|
||||
put: email-notification
|
||||
params:
|
||||
subject_text: "Build failure ${BUILD_PIPELINE_NAME} / ${BUILD_JOB_NAME} / ${BUILD_NAME}"
|
||||
body_text: "Build ${ATC_EXTERNAL_URL}/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME} has failed!"
|
||||
do:
|
||||
- put: repo-status-build
|
||||
params: { state: "failure", commit: "git-repo" }
|
||||
- put: email-notification
|
||||
params:
|
||||
subject_text: "Build failure ${BUILD_PIPELINE_NAME} / ${BUILD_JOB_NAME} / ${BUILD_NAME}"
|
||||
body_text: "Build ${ATC_EXTERNAL_URL}/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME} has failed!"
|
||||
- put: repo-status-build
|
||||
params: { state: "success", commit: "git-repo" }
|
||||
- put: artifactory-repo
|
||||
params: &artifactory-params
|
||||
repo: libs-snapshot-local
|
||||
|
@ -133,6 +166,8 @@ jobs:
|
|||
- get: spring-boot-jdk9-ci-image
|
||||
- get: git-repo
|
||||
trigger: true
|
||||
- put: repo-status-jdk9-build
|
||||
params: { state: "pending", commit: "git-repo" }
|
||||
- do:
|
||||
- task: build-project
|
||||
privileged: true
|
||||
|
@ -153,10 +188,15 @@ jobs:
|
|||
image: spring-boot-jdk9-ci-image
|
||||
file: git-repo/ci/tasks/build-deployment-tests.yml
|
||||
on_failure:
|
||||
put: email-notification
|
||||
params:
|
||||
subject_text: "JDK 9 Build failure ${BUILD_PIPELINE_NAME} / ${BUILD_JOB_NAME} / ${BUILD_NAME}"
|
||||
body_text: "Build ${ATC_EXTERNAL_URL}/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME} has failed!"
|
||||
do:
|
||||
- put: repo-status-jdk9-build
|
||||
params: { state: "failure", commit: "git-repo" }
|
||||
- put: email-notification
|
||||
params:
|
||||
subject_text: "JDK 9 Build failure ${BUILD_PIPELINE_NAME} / ${BUILD_JOB_NAME} / ${BUILD_NAME}"
|
||||
body_text: "Build ${ATC_EXTERNAL_URL}/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME} has failed!"
|
||||
- put: repo-status-jdk9-build
|
||||
params: { state: "success", commit: "git-repo" }
|
||||
- name: jdk10-build
|
||||
serial: true
|
||||
public: true
|
||||
|
@ -164,6 +204,8 @@ jobs:
|
|||
- get: spring-boot-jdk10-ci-image
|
||||
- get: git-repo
|
||||
trigger: true
|
||||
- put: repo-status-jdk10-build
|
||||
params: { state: "pending", commit: "git-repo" }
|
||||
- do:
|
||||
- task: build-project
|
||||
privileged: true
|
||||
|
@ -184,10 +226,15 @@ jobs:
|
|||
image: spring-boot-jdk10-ci-image
|
||||
file: git-repo/ci/tasks/build-deployment-tests.yml
|
||||
on_failure:
|
||||
put: email-notification
|
||||
params:
|
||||
subject_text: "JDK 10 Build failure ${BUILD_PIPELINE_NAME} / ${BUILD_JOB_NAME} / ${BUILD_NAME}"
|
||||
body_text: "Build ${ATC_EXTERNAL_URL}/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME} has failed!"
|
||||
do:
|
||||
- put: repo-status-jdk10-build
|
||||
params: { state: "failure", commit: "git-repo" }
|
||||
- put: email-notification
|
||||
params:
|
||||
subject_text: "JDK 10 Build failure ${BUILD_PIPELINE_NAME} / ${BUILD_JOB_NAME} / ${BUILD_NAME}"
|
||||
body_text: "Build ${ATC_EXTERNAL_URL}/teams/${BUILD_TEAM_NAME}/pipelines/${BUILD_PIPELINE_NAME}/jobs/${BUILD_JOB_NAME}/builds/${BUILD_NAME} has failed!"
|
||||
- put: repo-status-jdk10-build
|
||||
params: { state: "success", commit: "git-repo" }
|
||||
- name: stage-milestone
|
||||
serial: true
|
||||
plan:
|
||||
|
|
Loading…
Reference in New Issue