Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-14490

Build User Variables should be accessible from Post-Build Actions

    Details

    • Similar Issues:

      Description

      There's no component for build-user-vars-plugin in Jira, sorry!

      Headline says it all. Currently, the $BUILD_USER variable is only available in build actions, and is not available in post-build actions.

        Attachments

          Issue Links

            Activity

            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Fixed the component

            Show
            oleg_nenashev Oleg Nenashev added a comment - Fixed the component
            Hide
            yargo Yaron Golan added a comment -

            Same as in the post build step named "Editable Email notification".

            The variables are not parsed.

            Any workaround I can use?

            TIA,
            Yargo

            Show
            yargo Yaron Golan added a comment - Same as in the post build step named "Editable Email notification". The variables are not parsed. Any workaround I can use? TIA, Yargo
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            I'm pretty sure I've fixed it. Away from the laptop now.
            Btw you can assign variables via EnvInject build step and then use in other steps

            Show
            oleg_nenashev Oleg Nenashev added a comment - I'm pretty sure I've fixed it. Away from the laptop now. Btw you can assign variables via EnvInject build step and then use in other steps
            Hide
            cbatson3z Chuck Batson added a comment -

            Trying to display user that triggered the build in a HipChat notification and can't get it to work. I have version 1.5 of the plugin installed, "Inject environment variables to the build process" enabled, and "Set jenkins user build variables" enabled. But the HipChat notif appears as "project_name #19 Starting... by $BUILD_USER_ID" for "$JOB_NAME #$BUILD_NUMBER $STATUS by $BUILD_USER_ID". However if I have an "Execute shell" build step and echo $BUILD_USER_ID I see the correct value.

            Show
            cbatson3z Chuck Batson added a comment - Trying to display user that triggered the build in a HipChat notification and can't get it to work. I have version 1.5 of the plugin installed, "Inject environment variables to the build process" enabled, and "Set jenkins user build variables" enabled. But the HipChat notif appears as "project_name #19 Starting... by $BUILD_USER_ID" for "$JOB_NAME #$BUILD_NUMBER $STATUS by $BUILD_USER_ID". However if I have an "Execute shell" build step and echo $BUILD_USER_ID I see the correct value.

              People

              • Assignee:
                Unassigned
                Reporter:
                sodabrew Aaron Stone
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: