rmetzger commented on a change in pull request #11501: [FLINK-16480][e2e] On 
failure, add e2e logs into artifact
URL: https://github.com/apache/flink/pull/11501#discussion_r397436400
 
 

 ##########
 File path: flink-end-to-end-tests/run-nightly-tests.sh
 ##########
 @@ -34,6 +34,23 @@ fi
 
 source "${END_TO_END_DIR}/test-scripts/test-runner-common.sh"
 
+# On Azure CI, set artifacts dir
+if [ ! -z "$TF_BUILD" ] ; then
+       export ARTIFACTS_DIR="${END_TO_END_DIR}/artifacts"
+       mkdir -p $ARTIFACTS_DIR || { echo "FAILURE: cannot create log directory 
'${ARTIFACTS_DIR}'." ; exit 1; }
+
+       # compress and register logs for publication on exit
+       function compress_logs {
+               echo "COMPRESSING build artifacts."
+               ARTIFACTS_FILE=${BUILD_BUILDNUMBER}.tgz
 
 Review comment:
   good idea! I was also confused a few times.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to