This is an automated email from the ASF dual-hosted git repository.

rmetzger pushed a commit to branch release-1.11
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.11 by this push:
     new f581764  [FLINK-17543][Azure] Add timestamp to log name to allow 
multiple uploads per module
f581764 is described below

commit f581764ccf67336dc16add6a183db1a2f9ddb3e9
Author: Robert Metzger <[email protected]>
AuthorDate: Mon May 18 09:51:18 2020 +0200

    [FLINK-17543][Azure] Add timestamp to log name to allow multiple uploads 
per module
---
 tools/travis_watchdog.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/travis_watchdog.sh b/tools/travis_watchdog.sh
index 55b8452..6a47db8 100755
--- a/tools/travis_watchdog.sh
+++ b/tools/travis_watchdog.sh
@@ -147,12 +147,13 @@ upload_artifacts_s3() {
 
        # On Azure, publish ARTIFACTS_FILE as a build artifact
        if [ ! -z "$TF_BUILD" ] ; then
+               TIMESTAMP=`date +%s` # append timestamp to name to allow 
multiple uploads for the same module
                ARTIFACT_DIR="$(pwd)/artifact-dir"
                mkdir $ARTIFACT_DIR
                cp $ARTIFACTS_FILE $ARTIFACT_DIR/
                
                echo "##vso[task.setvariable 
variable=ARTIFACT_DIR]$ARTIFACT_DIR"
-               echo "##vso[task.setvariable variable=ARTIFACT_NAME]$(echo 
$MODULE | tr -dc '[:alnum:]\n\r')"
+               echo "##vso[task.setvariable variable=ARTIFACT_NAME]$(echo 
$MODULE | tr -dc '[:alnum:]\n\r')-$TIMESTAMP"
        fi
 
        # upload to https://transfer.sh

Reply via email to