2023-03-23 11:13:21 +01:00
|
|
|
node {
|
2023-03-23 11:47:07 +01:00
|
|
|
stage('Download data') {
|
|
|
|
checkout scmGit(branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s452662/ium_452662']])
|
2023-03-23 11:13:21 +01:00
|
|
|
}
|
2023-03-23 11:47:07 +01:00
|
|
|
stage('Cut data') {
|
|
|
|
sh '''kaggle datasets download -d aleksandrglotov/car-prices-poland unzip -o car-prices-poland.zip wc -l Car_Prices_Poland_Kaggle.csv head -n 11793 Car_Prices_Poland_Kaggle.csv > cars_test.csv head -n 23586 Car_Prices_Poland_Kaggle.csv | tail -11793 > cars_dev.csv tail -n 1037740 Car_Prices_Poland_Kaggle.csv > cars_train.csv'''
|
2023-03-23 11:13:21 +01:00
|
|
|
}
|
2023-03-23 11:47:07 +01:00
|
|
|
stage('Save data into artifacts') {
|
|
|
|
archiveArtifacts artifacts: '*.csv', followSymlinks: false
|
2023-03-23 11:13:21 +01:00
|
|
|
}
|
|
|
|
}
|