pipeline { agent any 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' ) } stages { stage('Check out from version control') { steps { checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s444421/ium_444421.git']]]) } } stage('Shell Script') { steps { sh 'chmod u+x ./download_data.sh' withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}","KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { sh './download_data.sh' } archiveArtifacts 'travel_insurance_data.txt' } } } }