Update 'Jenkinsfile_create_dataset'

This commit is contained in:
Patryk Gałka 2023-04-18 22:29:23 +02:00
parent d74a67d96e
commit 59ca216011

View File

@ -26,7 +26,7 @@ pipeline {
steps {
//Wypisz wartość parametru w konsoli (To nie jest polecenie bash, tylko groovy!)
sh 'rm -rf ium_z434686'
sh 'rm -rf data/'
sh 'rm -rf Video_Games_Sales_as_at_22_Dec_2016.csv'
sh 'rm -rf video-game-sales-with-ratings.zip'
}
}
@ -44,10 +44,9 @@ pipeline {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'kaggle datasets download -d rush4ratio/video-game-sales-with-ratings'
sh 'unzip video-game-sales-with-ratings.zip -d data'
sh 'unzip video-game-sales-with-ratings.zip'
sh 'rm video-game-sales-with-ratings.zip'
sh 'ls -a ./data/ | tee dataset.csv'
sh 'ls -a | tee ls.txt'
sh 'ls -a | tee dataset.csv'
}
}
}
@ -68,7 +67,6 @@ pipeline {
echo 'Goodbye!'
//Zarchiwizuj wynik
archiveArtifacts 'output.txt'
archiveArtifacts 'ls.txt'
archiveArtifacts 'dataset.csv'
}