Update 'Jenkinsfile'

This commit is contained in:
Wojciech Mikołajski 2023-04-17 21:02:50 +02:00
parent d0947dc588
commit 6c6b94adfd

3
Jenkinsfile vendored
View File

@ -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'