pipeline { parameters { string( defaultValue: 'heatedboss2', description: 'Kaggle username', name: 'KAGGLE_USERNAME', trim: false ) password( defaultValue: '', description: 'Kaggle token', name: 'KAGGLE_KEY' ) } agent { dockerfile{ additionalBuildArgs '--build-arg KAGGLE_USERNAME="$KAGGLE_USERNAME"' } } stages { stage('Test') { steps { sh 'env' } } } }