2022-03-21 11:00:03 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
2022-03-27 21:06:25 +02:00
|
|
|
parameters {
|
|
|
|
string (
|
|
|
|
defaultValue: 'mikolajpokrywka',
|
|
|
|
description: 'Kaggle username',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false
|
|
|
|
)
|
|
|
|
password(
|
|
|
|
defaultValue: '',
|
|
|
|
description: 'Kaggle token',
|
|
|
|
name: 'KAGGLE_KEY'
|
|
|
|
)
|
|
|
|
string (
|
2022-03-27 21:55:59 +02:00
|
|
|
defaultValue: '17000',
|
2022-03-27 21:06:25 +02:00
|
|
|
description: 'cut data',
|
|
|
|
name: 'CUTOFF',
|
|
|
|
trim: false
|
|
|
|
)
|
2022-03-27 21:53:18 +02:00
|
|
|
}
|
2022-03-21 11:00:03 +01:00
|
|
|
stages {
|
2022-03-27 20:47:04 +02:00
|
|
|
stage('checkout: Check out from version control') {
|
2022-03-27 21:06:25 +02:00
|
|
|
steps {
|
2022-03-27 20:47:04 +02:00
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444463', url: 'https://git.wmi.amu.edu.pl/s444463/ium_444463.git']]])
|
2022-03-27 20:38:13 +02:00
|
|
|
}
|
2022-03-27 20:40:44 +02:00
|
|
|
}
|
2022-03-27 20:47:04 +02:00
|
|
|
stage('bash script') {
|
2022-03-27 20:38:13 +02:00
|
|
|
steps {
|
2022-03-27 22:01:52 +02:00
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}",
|
|
|
|
"CUTOFF=${params.CUTOFF}"]) {
|
|
|
|
sh "./process_data.sh"
|
|
|
|
archiveArtifacts artifacts: "data_test.csv, data_dev.csv, data_train.csv"
|
2022-03-27 21:53:18 +02:00
|
|
|
}
|
2022-03-21 11:00:03 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|