Further reduce repetition in CI pipeline.yml
See gh-21716
This commit is contained in:
parent
0957c7460b
commit
418859fab6
|
@ -44,6 +44,16 @@ anchors:
|
||||||
properties:
|
properties:
|
||||||
"zip.type": "docs"
|
"zip.type": "docs"
|
||||||
"zip.deployed": "false"
|
"zip.deployed": "false"
|
||||||
|
slack-fail-params: &slack-fail-params
|
||||||
|
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!>"
|
||||||
|
silent: true
|
||||||
|
icon_emoji: ":concourse:"
|
||||||
|
username: concourse-ci
|
||||||
|
slack-success-params: &slack-success-params
|
||||||
|
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!>"
|
||||||
|
silent: true
|
||||||
|
icon_emoji: ":concourse:"
|
||||||
|
username: concourse-ci
|
||||||
resource_types:
|
resource_types:
|
||||||
- name: artifactory-resource
|
- name: artifactory-resource
|
||||||
type: docker-image
|
type: docker-image
|
||||||
|
@ -250,10 +260,7 @@ jobs:
|
||||||
params: { state: "failure", commit: "git-repo" }
|
params: { state: "failure", commit: "git-repo" }
|
||||||
- put: slack-alert
|
- put: slack-alert
|
||||||
params:
|
params:
|
||||||
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!>"
|
<<: *slack-fail-params
|
||||||
silent: true
|
|
||||||
icon_emoji: ":concourse:"
|
|
||||||
username: concourse-ci
|
|
||||||
- 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
|
||||||
|
@ -263,16 +270,10 @@ jobs:
|
||||||
do:
|
do:
|
||||||
- put: slack-alert
|
- put: slack-alert
|
||||||
params:
|
params:
|
||||||
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!>"
|
<<: *slack-fail-params
|
||||||
silent: true
|
|
||||||
icon_emoji: ":concourse:"
|
|
||||||
username: concourse-ci
|
|
||||||
- put: slack-alert
|
- put: slack-alert
|
||||||
params:
|
params:
|
||||||
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!>"
|
<<: *slack-success-params
|
||||||
silent: true
|
|
||||||
icon_emoji: ":concourse:"
|
|
||||||
username: concourse-ci
|
|
||||||
- name: build-pull-requests
|
- name: build-pull-requests
|
||||||
serial: true
|
serial: true
|
||||||
public: true
|
public: true
|
||||||
|
@ -346,18 +347,12 @@ jobs:
|
||||||
params: { state: "failure", commit: "git-repo" }
|
params: { state: "failure", commit: "git-repo" }
|
||||||
- put: slack-alert
|
- put: slack-alert
|
||||||
params:
|
params:
|
||||||
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!>"
|
<<: *slack-fail-params
|
||||||
silent: true
|
|
||||||
icon_emoji: ":concourse:"
|
|
||||||
username: concourse-ci
|
|
||||||
- put: repo-status-jdk11-build
|
- put: repo-status-jdk11-build
|
||||||
params: { state: "success", commit: "git-repo" }
|
params: { state: "success", commit: "git-repo" }
|
||||||
- put: slack-alert
|
- put: slack-alert
|
||||||
params:
|
params:
|
||||||
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!>"
|
<<: *slack-success-params
|
||||||
silent: true
|
|
||||||
icon_emoji: ":concourse:"
|
|
||||||
username: concourse-ci
|
|
||||||
- name: windows-build
|
- name: windows-build
|
||||||
serial: true
|
serial: true
|
||||||
plan:
|
plan:
|
||||||
|
@ -376,16 +371,10 @@ jobs:
|
||||||
do:
|
do:
|
||||||
- put: slack-alert
|
- put: slack-alert
|
||||||
params:
|
params:
|
||||||
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!>"
|
<<: *slack-fail-params
|
||||||
silent: true
|
|
||||||
icon_emoji: ":concourse:"
|
|
||||||
username: concourse-ci
|
|
||||||
- put: slack-alert
|
- put: slack-alert
|
||||||
params:
|
params:
|
||||||
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!>"
|
<<: *slack-success-params
|
||||||
silent: true
|
|
||||||
icon_emoji: ":concourse:"
|
|
||||||
username: concourse-ci
|
|
||||||
- name: stage-milestone
|
- name: stage-milestone
|
||||||
serial: true
|
serial: true
|
||||||
plan:
|
plan:
|
||||||
|
|
Loading…
Reference in New Issue