Open serg-kosyak opened 4 months ago
@fescobar It might be better to go into the project folder first and then clean up. (look to my pull request)
I mean
cd $STATIC_CONTENT_PROJECTS/$PROJECT_ID/
and then
CURRENT_SIZE=$(ls -Ad reports/* | grep -wv reports/latest | grep -wv 0 | grep -v $EMAILABLE_REPORT_FILE_NAME | wc -l)
Hi @fescobar https://github.com/fescobar/allure-docker-service/blob/aeb786e1f856297e9eeebcd93596a4e14335405f/allure-docker-scripts/keepAllureLatestHistory.sh#L11
If there is a "0" in the project name, the script does not clear old reports.
It looks like it's because of this:
grep -wv 0
Here is result of command without this grep:Here is result without flag --invert-match (-v):
grep -w 0
As you can see, it filters all reports because of the Zero in the project name.