I need to pass the username of the requester of a build down to the script that is actually doing the work. Looking at the console output for a particular build, the first line is always "Started by user foo," so Jenkins is clearly keeping track of who triggered the build. So it should be possible to pass that information down to the job. The question is, how?
Looking at the console output for a particular build, the first line is always "Started by user foo," so Jenkins is clearly keeping track of who triggered the build. So it should be possible to pass that information down to the job.
The simplest way to know what has changed on your Jenkins builds! Last Changes is a Jenkin plugin that shows rich VCS diffs between builds.
Labels are tags one can give an agent which allows it to differentiate itself from other nodes in Jenkins. A few reasons why node labels are important: Nodes might have certain tools associated with it. Labels could include different tools a given node supports.
user30997
Please check out Jenkins Build User Vars plugin, it does what you need:
It is used to set following user build variables:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With