ium_z444510/Jenkinsfile

46 lines
1.5 KiB
Plaintext
Raw Normal View History

2023-03-25 13:44:43 +01:00
pipeline {
2023-04-20 21:20:12 +02:00
agent any
parameters{
string(
defaultValue: 'piotrwrzodak',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
string(
defaultValue: '1000',
description: 'CUTOFF',
name: 'CUTOFF',
trim: false
)
}
2023-03-25 13:44:43 +01:00
stages {
2023-04-20 21:51:52 +02:00
stage('Clear') {
steps {
sh 'rm -rf *'
2023-03-25 13:44:43 +01:00
}
2023-04-20 21:51:52 +02:00
}
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 'ls -a'
sh 'ls -a ./ium_z444510'
2023-04-20 22:36:23 +02:00
sh 'chmod u+x ./create-dataset.sh'
sh './create-dataset.sh'
2023-04-20 21:51:52 +02:00
}
2023-04-20 22:34:28 +02:00
// archiveArtifacts 'ium_z444510/train.csv'
// archiveArtifacts 'ium_z444510/dev.csv'
// archiveArtifacts 'ium_z444510/test.csv'
2023-04-20 21:51:52 +02:00
}
}
2023-04-20 21:20:12 +02:00
}
2023-03-25 13:44:43 +01:00
}