build user vars

ID: build-user-vars-plugin

Build Status Contributors Jenkins Plugin GitHub release Jenkins Plugin Installs

Set of environment variables that describe the user who started the build.

Variables provided

The plugin provides the following environment variables:

Variable Description
BUILD_USER Full name (first name + last name)
BUILD_USER_FIRST_NAME First name
BUILD_USER_LAST_NAME Last name
BUILD_USER_ID Jenkins user ID
BUILD_USER_GROUPS Jenkins user groups
BUILD_USER_EMAIL Email address

Usage example

Select Set Jenkins user build variables and reference the variables during the build:

Pipeline Examples

node {
  wrap([$class: 'BuildUser']) {
    def user = env.BUILD_USER_ID
  }
}

Changelog

Release notes are available in GitHub Releases since July 2020 (build-user-vars plugin 1.6 and later). Prior release notes are available in the plugin repository changelog.

Jenkins core compatibility

This plugin requires Jenkins 2.164.1+.

ArchivesGet past versions
Version: 1.6
Released:
Requires Jenkins 2.164.1
Installs: 25,075
Labels
This plugin has no labels
Maintainers
Gavriil Konovalenko
Help us improve this page!
To propose a change submit a pull request to the plugin page on GitHub.