diff options
author | 2025-03-11 14:23:33 +0000 | |
---|---|---|
committer | 2025-03-11 14:42:04 +0000 | |
commit | 5cbbe18955854f300bff2404958251b7ab5297e2 (patch) | |
tree | 1b13310e17ad8d5febf78d79f57d7e01e61ddf8d | |
parent | cd5de2c264467535f6c43e375c03ac0e174e4293 (diff) |
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 <halil.cakal@est.tech>
-rw-r--r-- | k6-tests/make-logs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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" |