How to set the job number and description for a Jenkinsfile in a Jenkins Pipeline?

Jenkins currentBuild displayName description
currentBuild.displayName = "hello"  // replaces the job number
currentBuild.description = "world"  // Writes text under the job number

Other pages

Jenkins

Author

Gabor Szabo (szabgab) Gabor Szabo