This commit is contained in:
Wojciech Lidwin 2023-04-04 15:27:09 +02:00
parent 1aa96f1654
commit 90a8df7948

5
Jenkinsfile vendored
View File

@ -37,7 +37,10 @@ node {
"KAGGLE_KEY=${params.KAGGLE_KEY}",
"CUTOFF=${params.CUTOFF}" ]) {
sh '''echo KAGGLE_USERNAME: $KAGGLE_USERNAME'''
sh './download_dataset.sh'
sh 'echo {\"username\":\"$KAGGLE_USERNAME\",\"key\":\"$KAGGLE_KEY\"}>>kaggle.json'
sh 'cat kaggle.json'
sh 'mkdir ~/.kaggle'
sh 'mv kaggle.json ~/.kaggle'
sh "kaggle datasets download -d sohier/crime-in-baltimore"
sh "unzip crime-in-baltimore.zip"
sh 'python3 data.py'