node { stage('Preparation') { properties([ parameters([ string( defaultValue: 'szymonparafinski', description: 'Kaggle username', name: 'KAGGLE_USERNAME', trim: false ) ]) ]) } stage('Build') { // Run the maven build withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}"]) { sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME' } } }