2021-03-27 17:50:28 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
2021-03-27 19:38:42 +01:00
|
|
|
stage('Preparation') {
|
|
|
|
properties([
|
|
|
|
parameters([
|
|
|
|
string(defaultValue: 'karopa',
|
|
|
|
description: 'Kaggle username',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false),
|
|
|
|
password(defaultValue: '',
|
|
|
|
description: 'Kaggle token',
|
|
|
|
name: 'KAGGLE_KEY')
|
2021-03-27 20:46:38 +01:00
|
|
|
|
|
|
|
])
|
2021-03-27 19:38:42 +01:00
|
|
|
]
|
|
|
|
)
|
|
|
|
}
|
2021-03-27 18:48:24 +01:00
|
|
|
stage('Clone repo') {
|
2021-03-27 19:38:42 +01:00
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]){
|
2021-03-27 18:48:24 +01:00
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s434765/ium_434765']]])
|
2021-03-27 19:26:06 +01:00
|
|
|
sh 'chmod 777 get_data_simple.sh'
|
2021-03-27 19:24:44 +01:00
|
|
|
sh './get_data_simple.sh'
|
2021-03-27 18:48:24 +01:00
|
|
|
archiveArtifacts data_dev
|
|
|
|
archiveArtifacts data_shuf
|
|
|
|
archiveArtifacts data_test
|
|
|
|
archiveArtifacts data_train
|
2021-03-27 19:38:42 +01:00
|
|
|
}
|
2021-03-27 17:50:28 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|