This is how I have done in Jenkins :
node {
stage('Build') {
def productType = params.productType
currentBuild.displayName = "#${env.BUILD_NUMBER} - ${productType}"
currentBuild.description = "Type: ${productType}"
}
}
Hopefully this will help someone.