2021-03-23 20:31:17 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
2021-03-28 14:48:28 +02:00
|
|
|
parameters {[
|
|
|
|
string (
|
|
|
|
defaultValue: '500',
|
|
|
|
description: 'Liczba wierszy do odcięcia od datasetu',
|
|
|
|
name: 'CUTOFF',
|
|
|
|
trim: false
|
|
|
|
),
|
|
|
|
string(
|
|
|
|
defaultValue: 'yerbamate',
|
|
|
|
description: 'Kaggle username',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false
|
|
|
|
),
|
|
|
|
password(
|
|
|
|
defaultValue: '',
|
|
|
|
description: 'Kaggle token',
|
|
|
|
name: 'KAGGLE_KEY'
|
|
|
|
)]
|
|
|
|
}
|
|
|
|
|
2021-03-23 20:31:17 +01:00
|
|
|
stages {
|
2021-03-28 13:06:52 +02:00
|
|
|
stage('checkout: Check out from version control') {
|
2021-03-23 20:31:17 +01:00
|
|
|
steps {
|
2021-03-28 13:06:52 +02:00
|
|
|
git credentialsId: 'f746c8e0-e974-4758-838d-1920a7b0e3dc',
|
|
|
|
url: 'https://git.wmi.amu.edu.pl/s434742/ium_434742'
|
2021-03-23 20:31:17 +01:00
|
|
|
}
|
|
|
|
}
|
2021-03-28 13:06:52 +02:00
|
|
|
stage('sh: Shell Script') {
|
|
|
|
steps {
|
2021-03-28 14:48:28 +02:00
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
|
|
|
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
2021-03-28 13:06:52 +02:00
|
|
|
sh 'chmod +x avocado-preprocessing.sh'
|
2021-03-28 13:18:12 +02:00
|
|
|
sh 'chmod +x ./avocado-preprocessing.sh'
|
2021-03-28 13:06:52 +02:00
|
|
|
sh './avocado-preprocessing.sh ${CUTOFF}'
|
2021-03-28 14:48:28 +02:00
|
|
|
}
|
2021-03-28 13:06:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('archiveArtifacts') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts 'test.csv'
|
|
|
|
archiveArtifacts 'dev.csv'
|
|
|
|
archiveArtifacts 'train.csv'
|
|
|
|
}
|
|
|
|
}
|
2021-03-23 20:31:17 +01:00
|
|
|
}
|
2021-03-28 13:06:52 +02:00
|
|
|
}
|