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' } } }