Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
detector_benchmarks
Manage
Activity
Members
Labels
Plan
Issues
21
Issue boards
Milestones
Wiki
Code
Merge requests
7
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
detector_benchmarks
Merge requests
!122
fix: rework the status reporting to github
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix: rework the status reporting to github
wdconinc-master-patch-98887
into
master
Overview
0
Commits
6
Pipelines
0
Changes
1
Merged
Wouter Deconinck
requested to merge
wdconinc-master-patch-98887
into
master
2 years ago
Overview
0
Commits
6
Pipelines
0
Changes
1
Expand
👍
0
👎
0
Merge request reports
Compare
master
version 5
752c0bb0
2 years ago
version 4
b0e8e651
2 years ago
version 3
b65703bd
2 years ago
version 2
e9441514
2 years ago
version 1
8c8da62b
2 years ago
master (base)
and
latest version
latest version
b6ae2af6
6 commits,
2 years ago
version 5
752c0bb0
5 commits,
2 years ago
version 4
b0e8e651
4 commits,
2 years ago
version 3
b65703bd
3 commits,
2 years ago
version 2
e9441514
2 commits,
2 years ago
version 1
8c8da62b
1 commit,
2 years ago
1 file
+
34
−
26
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
34
−
26
Options
@@ -36,26 +36,33 @@ stages:
-
collect
-
deploy
-
trigger
-
status-
success
-
status-
report
benchmarks:detector:pending
:
stage
:
status-pending
.status
:
script
:
-
|
if [ -n "${GITHUB_SHA}" ] ; then
echo https://api.github.com/repos/${GITHUB_REPOSITORY}/statuses/${GITHUB_SHA}
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${GITHUB_REPO_STATUS_TOKEN}" \
https://api.github.com/repos/${GITHUB_REPOSITORY}/statuses/${GITHUB_SHA} \
-d '{"state":"
pending", \
"target_url":"${CI_PIPELINE_URL}"
, \
"description":"
The detector benchmarks are running...", \
"context":"eicweb/detector_benchmarks"
\
}' ;
"
https://api.github.com/repos/${GITHUB_REPOSITORY}/statuses/${GITHUB_SHA}
"
\
-d '{"state":"
'"${STATE}"'",
"target_url":"
'"
${CI_PIPELINE_URL}"
'",
"description":"
'"${DESCRIPTION}"'",
"context":"eicweb/detector_benchmarks"
}' ;
fi
benchmarks:detector:pending
:
stage
:
status-pending
extends
:
.status
variables
:
STATE
:
"
pending"
DESCRIPTION
:
"
The
detector
benchmarks
are
running..."
when
:
always
common:setup
:
stage
:
config
before_script
:
@@ -153,23 +160,24 @@ deploy_results:
-
echo "deploy results!"
benchmarks:detector:success
:
stage
:
status-
success
stage
:
status-
report
needs
:
-
[
"
deploy_results"
]
script
:
-
|
if [ -n "${GITHUB_SHA}" ] ; then
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${GITHUB_REPO_STATUS_TOKEN}" \
https://api.github.com/repos/${GITHUB_REPOSITORY}/statuses/${GITHUB_SHA} \
-d '{"state":"success", \
"target_url":"${CI_PIPELINE_URL}", \
"description":"The detector benchmarks succeeded!", \
"context":"eicweb/detector_benchmarks" \
}' ;
fi
extends
:
.status
variables
:
STATE
:
"
success"
DESCRIPTION
:
"
The
detector
benchmarks
succeeded!"
when
:
on_success
benchmarks:detector:failure
:
stage
:
status-report
needs
:
-
[
"
deploy_results"
]
extends
:
.status
variables
:
STATE
:
"
failure"
DESCRIPTION
:
"
The
detector
benchmarks
failed!"
when
:
on_failure
benchmarks:reconstruction
:
stage
:
trigger
Loading