- 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>
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"