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