Skip to content

Commit

Permalink
Use project dir
Browse files Browse the repository at this point in the history
  • Loading branch information
zdrapela committed Jan 16, 2025
1 parent d969b0c commit bcac2f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .ibm/pipelines/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ droute_send() {
# Initialize Data Router logging
ARTIFACT_DIR=${ARTIFACT_DIR:-/tmp/artifacts}
echo "ARTIFACT_DIR = ${ARTIFACT_DIR}"
mkdir -p "${ARTIFACT_DIR}/datarouter-errors"
mkdir -p "${ARTIFACT_DIR}/${project}/datarouter-errors"
# Send test results through DataRouter and save the request ID.
local max_attempts=5
for ((i = 1; i <= max_attempts; i++)); do
Expand All @@ -119,7 +119,7 @@ droute_send() {
--results '${temp_droute}/${JUNIT_RESULTS}' \
--verbose" 2>&1)
# Log output to artifact directory
log_file="${ARTIFACT_DIR}/datarouter-errors/attempt_${i}.log"
log_file="${ARTIFACT_DIR}/${project}/datarouter-errors/attempt_${i}.log"
echo "${output}" > "${log_file}"
echo "droute send logs written to ${log_file}"

Expand Down

0 comments on commit bcac2f4

Please sign in to comment.