diff --git a/Jenkinsfile b/Jenkinsfile index c6477cc..164612c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,21 +20,26 @@ pipeline { ) } stages { - stage('Build') { - steps { - sh 'git clone https://git.wmi.amu.edu.pl/s444510/ium_z444510.git' - withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { - sh 'kaggle datasets download -d thedevastator/airbnb-prices-in-european-cities' - sh 'unzip airbnb-prices-in-european-cities.zip -d ./ium_z444510' - sh 'rm airbnb-prices-in-european-cities.zip' - sh 'python ium_z444510/create-dataset.py' - sh 'ls -a' - sh 'ls -a ./ium_z444510' + stage('Clear') { + steps { + sh 'rm -rf *' } - archiveArtifacts 'train.csv' - archiveArtifacts 'dev.csv' - archiveArtifacts 'test.csv' - } - } + } + stage('Build') { + steps { + sh 'git clone https://git.wmi.amu.edu.pl/s444510/ium_z444510.git' + withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { + sh 'kaggle datasets download -d thedevastator/airbnb-prices-in-european-cities' + sh 'unzip airbnb-prices-in-european-cities.zip -d ./ium_z444510' + sh 'rm airbnb-prices-in-european-cities.zip' + sh 'python ium_z444510/create-dataset.py' + sh 'ls -a' + sh 'ls -a ./ium_z444510' + } + archiveArtifacts 'train.csv' + archiveArtifacts 'dev.csv' + archiveArtifacts 'test.csv' + } + } } } \ No newline at end of file