From 6c6b94adfd2838ee7617f883009924550338e212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Miko=C5=82ajski?= Date: Mon, 17 Apr 2023 21:02:50 +0200 Subject: [PATCH] Update 'Jenkinsfile' --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7816bbf..15d075b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,7 +25,8 @@ node { "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { sh 'kaggle datasets download -d mssmartypants/water-quality > output.txt' sh 'unzip -o water-quality.zip >> output.txt' - sh 'head -n 30 waterQuality1.csv > temp.csv' + sh 'readarray -t lines < waterQuality1.csv' + sh 'shuf -e "${lines[@]}" | head -n 30 > temp.csv' sh 'mv temp.csv waterQuality1.csv' sh 'python3 create_dataset.py >> output.txt' archiveArtifacts artifacts: 'waterQuality.csv, output.txt'