From e0bf48706c3ad1cf90ba68ca37c1360f3cc260f8 Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Sun, 27 Mar 2022 23:25:26 +0200 Subject: [PATCH] Save artifacts --- Jenkinsfile | 6 ++++++ download_dataset.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 06f3e2d..2d129ab 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,4 +29,10 @@ pipeline { } } } + post { + always { + archiveArtifacts artifacts: 'data/*', + onlyIfSuccessful: true + } + } } diff --git a/download_dataset.sh b/download_dataset.sh index 6930433..12d23aa 100644 --- a/download_dataset.sh +++ b/download_dataset.sh @@ -46,7 +46,7 @@ kaggle datasets download -d anikannal/solar-power-generation-data echo "Done." echo "Unzipping archive" -files=$(unzip solar-power-generation-data.zip | tail -n +2 | cut -d ' ' -f 4) +files=$(unzip -o solar-power-generation-data.zip | tail -n +2 | cut -d ' ' -f 4) echo "Done." echo "Splitting datasets"