I am using the Pipeline plugin in Jenkins by Clouldbees (the name was Workflow plugin before), I am trying to get the user name in the Groovy script but I am not able to ach
To make it work with Jenkins Pipeline:
Install user build vars plugin
Then run the following:
pipeline { agent any stages { stage('build user') { steps { wrap([$class: 'BuildUser']) { sh 'echo "${BUILD_USER}"' } } } } }