ci: add cleanup step to all e2e Jenkins jobs

Otherwise we get multiple APKs in the `results` folder.
```
admin@linux-01.he-eu-hel1.ci.devel:/home/jenkins/workspace/status-mobile/e2e/status-app-prs % ls -l result
total 502236
-rw-r--r-- 1 jenkins jenkins 57334087 Feb  7 10:25 StatusIm-Mobile-230207-101618-991339-pr14988-x86.apk
-rw-r--r-- 1 jenkins jenkins 57080127 Feb  7 13:18 StatusIm-Mobile-230207-131114-098c05-pr14977-x86.apk
-rw-r--r-- 1 jenkins jenkins 57088322 Feb  7 14:19 StatusIm-Mobile-230207-141155-05cc4c-pr15002-x86.apk
...
```
And `utils.findFile()` just pick the first one alphabeticlly.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-02-08 18:01:24 +01:00
parent 8cfc6ecb4f
commit 8ebad39c25
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
3 changed files with 11 additions and 0 deletions

View File

@ -97,5 +97,8 @@ pipeline {
) )
} }
} }
cleanup {
sh 'make purge'
}
} }
} }

View File

@ -129,4 +129,9 @@ pipeline {
} } } }
} }
} }
post {
cleanup {
sh 'make purge'
}
}
} }

View File

@ -115,5 +115,8 @@ pipeline {
) )
} }
} }
cleanup {
sh 'make purge'
}
} }
} }