From 85528e8983730d832cba01bf1d00d1b85c9c7a0f Mon Sep 17 00:00:00 2001 From: AWieczarek Date: Tue, 2 Apr 2024 22:53:09 +0200 Subject: [PATCH] IUM_04 --- Jenkinsfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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') {