From e77a7ae90ce625a1fad991233ca57383e3894053 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 17 Feb 2022 06:44:41 +1100 Subject: [PATCH] CI: remove log file deletion steps The CI environments are transient and start fresh each time, so there is no need to clean up temporary files. --- .gitlab-ci.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9d2a60a8b..616e94ced 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,7 +40,6 @@ portable-source: - logfile=`mktemp` - ci/build.sh |& tee $logfile - echo "$CI_JOB_NAME-warnings `grep -c 'warning:' $logfile`" > metrics.txt - - rm $logfile - cat metrics.txt artifacts: when: on_success @@ -62,7 +61,6 @@ portable-source: - logfile=`mktemp` - ci/build.sh |& tee $logfile - echo "$CI_JOB_NAME-warnings `grep -c 'warning:' $logfile`" > metrics.txt - - rm $logfile - cat metrics.txt artifacts: when: on_success @@ -98,7 +96,6 @@ portable-source: - logfile=`mktemp` - ci/build.sh 2>&1 | tee $logfile - echo "$CI_JOB_NAME-warnings `grep -c 'warning:' $logfile`" > metrics.txt - - rm $logfile - cat metrics.txt artifacts: when: on_success @@ -152,7 +149,6 @@ portable-source: - python ci/build_windows.py --build-system $env:build_system --platform $Env:project_platform --configuration $env:configuration 2>&1 | tee -a $logfile - $warnings_count = (Select-String -Pattern " warning " -Path $logfile).length - echo "$CI_JOB_NAME-warnings $warnings_count" > metrics.txt - - rm $logfile - cat metrics.txt - python gen_version.py --output GRAPHVIZ_VERSION # Package @@ -427,7 +423,6 @@ out-of-source-build: - logfile=`mktemp` - ci/out-of-source-build.sh |& tee $logfile - echo "$CI_JOB_NAME-warnings `grep -c 'warning:' $logfile`" > metrics.txt - - rm $logfile - cat metrics.txt needs: - job: docker_build_ubuntu-21.10 @@ -1502,7 +1497,6 @@ lint_pylint: - logfile=`mktemp` - python3 -m pylint --rcfile=.pylintrc `find . -name '*.py' | xargs` --exit-zero |& tee $logfile - echo "$CI_JOB_NAME-warnings `egrep -c '\<[CRWEF][[:digit:]]{4}\>' $logfile`" > metrics.txt - - rm $logfile - cat metrics.txt - python3 -m pylint --rcfile=.pylintrc --disable=fixme `find . -name '*.py' | xargs` artifacts: -- 2.40.0