Skip to content

Commit

Permalink
[FLINK-17543][Azure] Add timestamp to log name to allow multiple uplo…
Browse files Browse the repository at this point in the history
…ads per module
  • Loading branch information
rmetzger committed May 18, 2020
1 parent 1cd696d commit caabaf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/travis_watchdog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit caabaf8

Please sign in to comment.