Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
c81e984b
Commit
c81e984b
authored
Apr 19, 2018
by
Madhura Bhave
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.0.x'
parents
36e33a3b
2e836ac7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
pipeline.yml
ci/pipeline.yml
+6
-0
determine-email-body.sh
ci/scripts/determine-email-body.sh
+1
-1
No files found.
ci/pipeline.yml
View file @
c81e984b
...
...
@@ -152,6 +152,7 @@ jobs:
BUILD_PIPELINE_NAME
:
((pipeline-name))
BUILD_JOB_NAME
:
build
CONCOURSE_URL
:
((concourse-url))
ACCESS_TOKEN
:
((github-access-token))
-
put
:
email-notification
params
:
subject
:
email-details/subject
...
...
@@ -165,6 +166,7 @@ jobs:
BUILD_PIPELINE_NAME
:
((pipeline-name))
BUILD_JOB_NAME
:
build
CONCOURSE_URL
:
((concourse-url))
ACCESS_TOKEN
:
((github-access-token))
-
put
:
repo-status-build
params
:
{
state
:
"
success"
,
commit
:
"
git-repo"
}
-
put
:
email-notification
...
...
@@ -268,6 +270,7 @@ jobs:
BUILD_PIPELINE_NAME
:
((pipeline-name))
BUILD_JOB_NAME
:
jdk9-build
CONCOURSE_URL
:
((concourse-url))
ACCESS_TOKEN
:
((github-access-token))
-
put
:
email-notification
params
:
subject
:
email-details/subject
...
...
@@ -281,6 +284,7 @@ jobs:
BUILD_PIPELINE_NAME
:
((pipeline-name))
BUILD_JOB_NAME
:
jdk9-build
CONCOURSE_URL
:
((concourse-url))
ACCESS_TOKEN
:
((github-access-token))
-
put
:
repo-status-jdk9-build
params
:
{
state
:
"
success"
,
commit
:
"
git-repo"
}
-
put
:
email-notification
...
...
@@ -327,6 +331,7 @@ jobs:
BUILD_PIPELINE_NAME
:
((pipeline-name))
BUILD_JOB_NAME
:
jdk10-build
CONCOURSE_URL
:
((concourse-url))
ACCESS_TOKEN
:
((github-access-token))
-
put
:
email-notification
params
:
subject
:
email-details/subject
...
...
@@ -340,6 +345,7 @@ jobs:
BUILD_PIPELINE_NAME
:
((pipeline-name))
BUILD_JOB_NAME
:
jdk10-build
CONCOURSE_URL
:
((concourse-url))
ACCESS_TOKEN
:
((github-access-token))
-
put
:
repo-status-jdk10-build
params
:
{
state
:
"
success"
,
commit
:
"
git-repo"
}
-
put
:
email-notification
...
...
ci/scripts/determine-email-body.sh
View file @
c81e984b
...
...
@@ -4,7 +4,7 @@ set -e
pushd
git-repo
>
/dev/null
PREV_SHA
=
$(
git rev-parse HEAD^1
)
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'
)
WAS_PREV_SUCCESSFUL
=
$(
echo
"
$PREV_STATES
"
|
grep
'success'
||
true
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment