node { stage('Preparation') { properties([ parameters([ string( defaultValue: 'h7557h', description: 'Kaggle username', name: 'KAGGLE_USERNAME', trim: false ), password( defaultValue: ''926ee9d10da62b6d8448a80a49404be0, description: 'Kaggle token', name: 'KAGGLE_KEY' ) ]) ]) } stage('Build') { withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME' sh 'kaggle datasets list' } } }