From e27ad69857bc7e9c357bd8401d3005825c4176ea Mon Sep 17 00:00:00 2001 From: Agata Date: Sun, 10 Apr 2022 11:29:59 +0200 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 527d637..df81a7b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,22 +1,8 @@ pipeline { - agent any + agent { + dockerfile true + } parameters { - string( - defaultValue: '', - description: 'Kaggle username', - name: 'KAGGLE_USERNAME', - trim: false - ) - password( - defaultValue: '', - description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials', - name: 'KAGGLE_KEY' - ) - string( - defaultValue: '5', - description: 'Cutoff', - name: 'CUTOFF' - ) } stages { stage('Check out from version control') { @@ -26,11 +12,7 @@ pipeline { } stage('Shell Script') { steps { - sh 'chmod u+x ./download_data.sh' - withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}","KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}"]) { - sh './download_data.sh' - } - archiveArtifacts 'travel_insurance_data.txt' + sh 'python3 ./preparation.py' } } }