node { stage('Preparation') { properties([ parameters([ string( defaultValue: 'login', 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' ) ]) ]) } stage('checkout: Check out from version control') { git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487182/ium_s487182' } stage('sh: Shell Script') { // Run the maven build withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { sh 'kaggle datasets download -d mssmartypants/water-quality > waterQuality.csv' sh 'ls > output.txt' archiveArtifacts artifacts: './waterQuality.csv' } } }