From: halil.cakal Date: Tue, 11 Mar 2025 14:23:33 +0000 (+0000) Subject: Set a permanent directory for the container logs X-Git-Tag: 3.6.2~49^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=5cbbe18955854f300bff2404958251b7ab5297e2;p=cps.git Set a permanent directory for the container logs - Currently the container logs (cps-and-ncmp) being stored in the cps repository (in k6-tests/logs directory). In every build, cps code base being fetched freshly. Thus, the zipped container logs being lost. - Now, by using the WORKSPACE variable set by Jenkins job, the logs will be stored under the root directory of WORKSPACE permanently. Issue-ID: CPS-2676 Change-Id: I0f7f9a46b94fc3e438de39bbab04f9a59daf446b Signed-off-by: halil.cakal --- diff --git a/k6-tests/make-logs.sh b/k6-tests/make-logs.sh index 0e42a96942..60976247e5 100644 --- a/k6-tests/make-logs.sh +++ b/k6-tests/make-logs.sh @@ -17,7 +17,7 @@ SERVICE_NAME="cps-and-ncmp" TIMESTAMP=$(date +"%Y%m%d%H%M%S") -LOG_DIR="logs" +LOG_DIR="${WORKSPACE:-.}/logs" TEMP_DIR="$LOG_DIR/temp_$TIMESTAMP" ZIP_FILE="$LOG_DIR/${SERVICE_NAME}_logs_$TIMESTAMP.zip"