jobs/gerrit-verifications-comment: rename

Rename the jenkins job from gerrit-pipeline-result to
gerrit-verifications-comment, as the next patch will not only use this
job to post a comment at the end of the gerrit verification, but also at
the beginning when the pipeline starts.

Give the pipeline_summary* scripts more generic names as well.

Change-Id: I1b947522aa5f2bb21f5e438db9df3420c998f1bc
This commit is contained in:
Oliver Smith 2023-01-16 13:59:01 +01:00 committed by osmith
parent 2e3c8b6603
commit ed604a0bb3
4 changed files with 9 additions and 9 deletions

View File

@ -2,12 +2,12 @@
# post a list of failed/successful job links to gerrit and to vote +V/-V.
- project:
name: gerrit-pipeline-result
name: gerrit-verifications-comment
jobs:
- 'gerrit-pipeline-result'
- 'gerrit-verifications-comment'
- job:
name: 'gerrit-pipeline-result'
name: 'gerrit-verifications-comment'
project-type: freestyle
node: osmocom-gerrit
retry-count: 3 # scm checkout
@ -68,7 +68,7 @@
wipe-workspace: true
builders:
- shell: 'cd scripts/jenkins-gerrit && ./pipeline_summary_send.sh'
- shell: 'cd scripts/jenkins-gerrit && ./comment_send.sh'
wrappers:
- ansicolor:

View File

@ -501,17 +501,17 @@
}}
}}
}}
stage("Result") {{
stage("Result Comment") {{
steps {{
echo "PIPELINE_BUILD_PASSED=${{env.PIPELINE_BUILD_PASSED}}"
echo "PIPELINE_LINT_PASSED=${{env.PIPELINE_LINT_PASSED}}"
echo "PIPELINE_DEB_PASSED=${{env.PIPELINE_DEB_PASSED}}"
echo "PIPELINE_RPM_PASSED=${{env.PIPELINE_RPM_PASSED}}"
// Run the result job to get successful/failed links and add a
// Run the comment job to get successful/failed links and add a
// comment + vote to gerrit
script {{
build job: 'gerrit-pipeline-result', parameters: [
build job: 'gerrit-verifications-comment', parameters: [
string(name: "GERRIT_PROJECT", value: "${{env.GERRIT_PROJECT}}"),
string(name: "GERRIT_CHANGE_NUMBER", value: "${{env.GERRIT_CHANGE_NUMBER}}"),
string(name: "GERRIT_PATCHSET_NUMBER", value: "${{env.GERRIT_PATCHSET_NUMBER}}"),

View File

@ -28,7 +28,7 @@ def parse_args():
def stage_from_job_name(job_name):
if job_name == "gerrit-pipeline-result":
if job_name == "gerrit-verifications-comment":
# The job that runs this script. Don't include it in the summary.
return None
if job_name == "gerrit-lint":

View File

@ -16,7 +16,7 @@ done
set -x
./pipeline_summary.py "$PIPELINE_BUILD_URL" \
./comment_generate.py "$PIPELINE_BUILD_URL" \
-o gerrit_report.json \
$arg_notify