This commit is contained in:
Wojciech Lidwin 2023-04-04 14:11:29 +02:00
parent 09a7e6911d
commit bc5763c731

5
Jenkinsfile vendored
View File

@ -33,10 +33,9 @@ node {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}", "KAGGLE_KEY=${params.KAGGLE_KEY}",
"CUTOFF=${params.CUTOFF}" ]) { "CUTOFF=${params.CUTOFF}" ]) {
sh "chmod 777 -R ${env.WORKSPACE}"
sh '''echo KAGGLE_USERNAME: $KAGGLE_USERNAME''' sh '''echo KAGGLE_USERNAME: $KAGGLE_USERNAME'''
sh '''kaggle datasets download -d sohier/crime-in-baltimore''' sh '''chmod u+x kaggle datasets download -d sohier/crime-in-baltimore'''
sh '''unzip crime-in-baltimore.zip''' sh '''chmod u+x unzip crime-in-baltimore.zip'''
sh 'python3 data.py' sh 'python3 data.py'
archiveArtifacts artifacts: 'BPD_Part_1_Victim_Based_Crime_Data.csv,baltimore_train.csv, baltimore_test.csv, baltimore_dev.csv' archiveArtifacts artifacts: 'BPD_Part_1_Victim_Based_Crime_Data.csv,baltimore_train.csv, baltimore_test.csv, baltimore_dev.csv'
} }