add clear stage in Jenkinsflie

This commit is contained in:
piotrwrzodak 2023-04-20 21:51:52 +02:00
parent 7897df0da6
commit 4cf096c14a

35
Jenkinsfile vendored
View File

@ -20,21 +20,26 @@ pipeline {
) )
} }
stages { stages {
stage('Build') { stage('Clear') {
steps { steps {
sh 'git clone https://git.wmi.amu.edu.pl/s444510/ium_z444510.git' sh 'rm -rf *'
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' stage('Build') {
archiveArtifacts 'test.csv' 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'
}
}
} }
} }