Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LPTOCPCI-1153] Add a hyperlink to specific build logs in slack message #20

Merged
merged 2 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ci_jobs_trigger/libs/openshift_ci/re_trigger/re_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from timeout_sampler import TimeoutSampler

from ci_jobs_trigger.libs.openshift_ci.re_trigger.job_db import DB
from ci_jobs_trigger.libs.openshift_ci.utils.constants import GANGWAY_API_URL
from ci_jobs_trigger.libs.openshift_ci.utils.constants import GANGWAY_API_URL, PROW_LOGS_URL_PREFIX
from ci_jobs_trigger.utils.general import OpenshiftCiReTriggerError, send_slack_message
from ci_jobs_trigger.libs.openshift_ci.utils.openshift_ci import (
get_authorization_header,
Expand Down Expand Up @@ -184,6 +184,6 @@ def get_url_content(self, **kwargs):
def generate_slack_msg_prefix(self):
return f"""
Job: {self.job_name}
Build ID: {self.build_id}
Build ID: <{PROW_LOGS_URL_PREFIX}/{self.job_name}/{self.build_id}|{self.build_id}>
myakove marked this conversation as resolved.
Show resolved Hide resolved
Prow ID: {self.prow_job_id}
"""
1 change: 1 addition & 0 deletions ci_jobs_trigger/libs/openshift_ci/utils/constants.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
GANGWAY_API_URL = "https://gangway-ci.apps.ci.l2s4.p1.openshiftapps.com/v1/executions"
PROW_LOGS_URL_PREFIX = "https://prow.ci.openshift.org/view/gs/test-platform-results/logs"