diff --git a/Jenkinsfile b/Jenkinsfile index 7c44f6d..5f5de85 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,10 @@ pipeline { + parameters { + string(name: 'CUTOFF', defaultValue: '10000', description: 'Liczba wierszy do obcięcia ze zbioru danych') + string(name: 'KAGGLE_USERNAME', defaultValue: '', description: 'Kaggle username') + password(name: 'KAGGLE_KEY', defaultValue: '', description: 'Kaggle API key') + } + agent { dockerfile { args '--build-arg="KAGGLE_KEY=${env.KAGGLE_KEY}" --build-arg="KAGGLE_USERNAME=${env.KAGGLE_USERNAME}"' @@ -6,11 +12,7 @@ pipeline { } } - parameters { - string(name: 'CUTOFF', defaultValue: '10000', description: 'Liczba wierszy do obcięcia ze zbioru danych') - string(name: 'KAGGLE_USERNAME', defaultValue: '', description: 'Kaggle username') - password(name: 'KAGGLE_KEY', defaultValue: '', description: 'Kaggle API key') - } + stages { stage('Clone Repository') {