Update 'Jenkinsfile_create_dataset'

This commit is contained in:
Patryk Gałka 2023-04-19 16:07:25 +02:00
parent 5e708c6105
commit 455b13de7b

View File

@ -28,22 +28,18 @@ pipeline {
sh 'rm -rf *' sh 'rm -rf *'
} }
} }
stage('checkout') {
steps {
//Wypisz wartość parametru w konsoli (To nie jest polecenie bash, tylko groovy!)
sh 'git clone https://git.wmi.amu.edu.pl/s434686/ium_z434686'
}
}
stage('Build') { stage('Build') {
steps { steps {
sh 'git clone https://git.wmi.amu.edu.pl/s434686/ium_z434686'
// Run the maven build // Run the maven build
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'kaggle datasets download -d rush4ratio/video-game-sales-with-ratings' sh 'kaggle datasets download -d rush4ratio/video-game-sales-with-ratings'
//sh 'unzip video-game-sales-with-ratings.zip -d ./ium_z434686' sh 'unzip video-game-sales-with-ratings.zip -d ./ium_z434686'
unzip zipFile: 'video-game-sales-with-ratings.zip', dir: './ium_z434686' //unzip zipFile: 'video-game-sales-with-ratings.zip', dir: './ium_z434686'
sh 'rm video-game-sales-with-ratings.zip' sh 'rm video-game-sales-with-ratings.zip'
} }
} }