Commit c81e984b authored by Madhura Bhave's avatar Madhura Bhave

Merge branch '2.0.x'

parents 36e33a3b 2e836ac7
...@@ -152,6 +152,7 @@ jobs: ...@@ -152,6 +152,7 @@ jobs:
BUILD_PIPELINE_NAME: ((pipeline-name)) BUILD_PIPELINE_NAME: ((pipeline-name))
BUILD_JOB_NAME: build BUILD_JOB_NAME: build
CONCOURSE_URL: ((concourse-url)) CONCOURSE_URL: ((concourse-url))
ACCESS_TOKEN: ((github-access-token))
- put: email-notification - put: email-notification
params: params:
subject: email-details/subject subject: email-details/subject
...@@ -165,6 +166,7 @@ jobs: ...@@ -165,6 +166,7 @@ jobs:
BUILD_PIPELINE_NAME: ((pipeline-name)) BUILD_PIPELINE_NAME: ((pipeline-name))
BUILD_JOB_NAME: build BUILD_JOB_NAME: build
CONCOURSE_URL: ((concourse-url)) CONCOURSE_URL: ((concourse-url))
ACCESS_TOKEN: ((github-access-token))
- put: repo-status-build - put: repo-status-build
params: { state: "success", commit: "git-repo" } params: { state: "success", commit: "git-repo" }
- put: email-notification - put: email-notification
...@@ -268,6 +270,7 @@ jobs: ...@@ -268,6 +270,7 @@ jobs:
BUILD_PIPELINE_NAME: ((pipeline-name)) BUILD_PIPELINE_NAME: ((pipeline-name))
BUILD_JOB_NAME: jdk9-build BUILD_JOB_NAME: jdk9-build
CONCOURSE_URL: ((concourse-url)) CONCOURSE_URL: ((concourse-url))
ACCESS_TOKEN: ((github-access-token))
- put: email-notification - put: email-notification
params: params:
subject: email-details/subject subject: email-details/subject
...@@ -281,6 +284,7 @@ jobs: ...@@ -281,6 +284,7 @@ jobs:
BUILD_PIPELINE_NAME: ((pipeline-name)) BUILD_PIPELINE_NAME: ((pipeline-name))
BUILD_JOB_NAME: jdk9-build BUILD_JOB_NAME: jdk9-build
CONCOURSE_URL: ((concourse-url)) CONCOURSE_URL: ((concourse-url))
ACCESS_TOKEN: ((github-access-token))
- put: repo-status-jdk9-build - put: repo-status-jdk9-build
params: { state: "success", commit: "git-repo" } params: { state: "success", commit: "git-repo" }
- put: email-notification - put: email-notification
...@@ -327,6 +331,7 @@ jobs: ...@@ -327,6 +331,7 @@ jobs:
BUILD_PIPELINE_NAME: ((pipeline-name)) BUILD_PIPELINE_NAME: ((pipeline-name))
BUILD_JOB_NAME: jdk10-build BUILD_JOB_NAME: jdk10-build
CONCOURSE_URL: ((concourse-url)) CONCOURSE_URL: ((concourse-url))
ACCESS_TOKEN: ((github-access-token))
- put: email-notification - put: email-notification
params: params:
subject: email-details/subject subject: email-details/subject
...@@ -340,6 +345,7 @@ jobs: ...@@ -340,6 +345,7 @@ jobs:
BUILD_PIPELINE_NAME: ((pipeline-name)) BUILD_PIPELINE_NAME: ((pipeline-name))
BUILD_JOB_NAME: jdk10-build BUILD_JOB_NAME: jdk10-build
CONCOURSE_URL: ((concourse-url)) CONCOURSE_URL: ((concourse-url))
ACCESS_TOKEN: ((github-access-token))
- put: repo-status-jdk10-build - put: repo-status-jdk10-build
params: { state: "success", commit: "git-repo" } params: { state: "success", commit: "git-repo" }
- put: email-notification - put: email-notification
......
...@@ -4,7 +4,7 @@ set -e ...@@ -4,7 +4,7 @@ set -e
pushd git-repo > /dev/null pushd git-repo > /dev/null
PREV_SHA=$( git rev-parse HEAD^1 ) PREV_SHA=$( git rev-parse HEAD^1 )
popd > /dev/null popd > /dev/null
PREV_STATUSES=$( curl https://api.github.com/repos/spring-projects/spring-boot/commits/$PREV_SHA/statuses ) PREV_STATUSES=$( curl https://api.github.com/repos/spring-projects/spring-boot/commits/$PREV_SHA/statuses -H "Authorization: token ${ACCESS_TOKEN}" )
PREV_STATES=$( echo $PREV_STATUSES | jq -r --arg BUILD_JOB_NAME "$BUILD_JOB_NAME" '.[] | select(.context == $BUILD_JOB_NAME) | .state' ) PREV_STATES=$( echo $PREV_STATUSES | jq -r --arg BUILD_JOB_NAME "$BUILD_JOB_NAME" '.[] | select(.context == $BUILD_JOB_NAME) | .state' )
WAS_PREV_SUCCESSFUL=$( echo "$PREV_STATES" | grep 'success' || true ) WAS_PREV_SUCCESSFUL=$( echo "$PREV_STATES" | grep 'success' || true )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment