Skip to content
Snippets Groups Projects
Unverified Commit 6248348b authored by Dmitry Kalinkin's avatar Dmitry Kalinkin Committed by GitHub
Browse files

.gitlab-ci.yml: ommit redundant description in github status, report BENCHMARKS_TAG instead (#144)

parent 231296ea
No related branches found
No related tags found
No related merge requests found
Pipeline #116069 canceled
...@@ -55,5 +55,5 @@ jobs: ...@@ -55,5 +55,5 @@ jobs:
-H "Accept: application/vnd.github+json" \ -H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_TOKEN" \ -H "Authorization: Bearer $GITHUB_TOKEN" \
-H "X-GitHub-Api-Version: 2022-11-28" \ -H "X-GitHub-Api-Version: 2022-11-28" \
-d '{"context": "eicweb/detector_benchmarks ('"$DETECTOR_CONFIG"')", "state": "pending", "description": "Waiting for response from the EICweb", "target_url": "${{ fromJson(steps.trigger_eicweb.outputs.json).web_url }}"}' \ -d '{"context": "eicweb/detector_benchmarks (nightly, '"$DETECTOR_CONFIG"')", "state": "pending", "description": "Waiting for response from the EICweb", "target_url": "${{ fromJson(steps.trigger_eicweb.outputs.json).web_url }}"}' \
"https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.event.pull_request.head.sha || github.sha }}" "https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.event.pull_request.head.sha || github.sha }}"
...@@ -61,8 +61,8 @@ stages: ...@@ -61,8 +61,8 @@ stages:
"https://api.github.com/repos/${GITHUB_REPOSITORY}/statuses/${GITHUB_SHA}" \ "https://api.github.com/repos/${GITHUB_REPOSITORY}/statuses/${GITHUB_SHA}" \
-d '{"state":"'"${STATE}"'", -d '{"state":"'"${STATE}"'",
"target_url":"'"${CI_PIPELINE_URL}"'", "target_url":"'"${CI_PIPELINE_URL}"'",
"description":"'"${DESCRIPTION} $(TZ=America/New_York date)"'", "description":"'"$(TZ=America/New_York date)"'",
"context":"eicweb/detector_benchmarks ('"$DETECTOR_CONFIG"')" "context":"eicweb/detector_benchmarks ('"${BENCHMARKS_TAG}"', '"$DETECTOR_CONFIG"')"
}' ; }' ;
fi fi
...@@ -72,7 +72,6 @@ benchmarks:detector:pending: ...@@ -72,7 +72,6 @@ benchmarks:detector:pending:
extends: .status extends: .status
variables: variables:
STATE: "pending" STATE: "pending"
DESCRIPTION: "Started..."
when: always when: always
common:setup: common:setup:
...@@ -197,7 +196,6 @@ benchmarks:detector:success: ...@@ -197,7 +196,6 @@ benchmarks:detector:success:
extends: .status extends: .status
variables: variables:
STATE: "success" STATE: "success"
DESCRIPTION: "Succeeded!"
after_script: after_script:
# Cleanup scratch space # Cleanup scratch space
- rm -rfv $LOCAL_DATA_PATH - rm -rfv $LOCAL_DATA_PATH
...@@ -209,7 +207,6 @@ benchmarks:detector:failure: ...@@ -209,7 +207,6 @@ benchmarks:detector:failure:
extends: .status extends: .status
variables: variables:
STATE: "failure" STATE: "failure"
DESCRIPTION: "Failed!"
when: on_failure when: on_failure
pages: pages:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment