This is an automated email from the ASF dual-hosted git repository. mapohl pushed a commit to branch release-1.18 in repository https://gitbox.apache.org/repos/asf/flink.git
commit 2c6493bcc1ef643330b59bea77bc5f3d703f9d85 Author: Matthias Pohl <[email protected]> AuthorDate: Thu Dec 21 18:27:46 2023 +0100 [hotfix][ci] Fixes find commands where touch might cause a failure if no files were found --- tools/azure-pipelines/create_build_artifact.sh | 2 +- tools/azure-pipelines/unpack_build_artifact.sh | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/tools/azure-pipelines/create_build_artifact.sh b/tools/azure-pipelines/create_build_artifact.sh index 809d14fe651..0beeca3b075 100755 --- a/tools/azure-pipelines/create_build_artifact.sh +++ b/tools/azure-pipelines/create_build_artifact.sh @@ -28,7 +28,7 @@ echo "Minimizing artifact files" # by removing files not required for subsequent stages # jars are re-built in subsequent stages, so no need to cache them (cannot be avoided) -find "$FLINK_ARTIFACT_DIR" -maxdepth 8 -type f -name '*.jar' | xargs rm -rf +find "$FLINK_ARTIFACT_DIR" -maxdepth 8 -type f -name '*.jar' -exec rm -rf {} \; # .git directory # not deleting this can cause build stability issues diff --git a/tools/azure-pipelines/unpack_build_artifact.sh b/tools/azure-pipelines/unpack_build_artifact.sh index 15d5c7c1057..68f8d221aae 100755 --- a/tools/azure-pipelines/unpack_build_artifact.sh +++ b/tools/azure-pipelines/unpack_build_artifact.sh @@ -28,15 +28,14 @@ cp -RT "$FLINK_ARTIFACT_DIR" "." echo "Adjusting timestamps" # adjust timestamps of proto file to avoid re-generation -find . -type f -name '*.proto' | xargs touch +find . -type f -name '*.proto' -exec touch {} \; # wait a bit for better odds of different timestamps sleep 5 # adjust timestamps to prevent recompilation -find . -type f -name '*.java' | xargs touch -find . -type f -name '*.scala' | xargs touch +find . -type f -name '*.java' -exec touch {} \; +find . -type f -name '*.scala' -exec touch {} \; # wait a bit for better odds of different timestamps sleep 5 -find . -type f -name '*.class' | xargs touch -find . -type f -name '*.timestamp' | xargs touch - +find . -type f -name '*.class' -exec touch {} \; +find . -type f -name '*.timestamp' -exec touch {} \;
