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

Expose P4_CLIENT, P4_USER and P4_PORT as the environment variables P4CLIENT, P4USER and P4PORT for scripts

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The old community P4 plugin used to expose the variables P4PORT, P4USER and P4CLIENT as environment variables for scripts to use. The new plugin on purpose uses different variables to ensure we dont override variables that are already set in the environment. Would be good if we had the option to also automatically set P4PORT=P4_PORT, P4USER=P4_USER and P4CLIENT=P4_CLIENT.

        Attachments

          Issue Links

            Activity

            Hide
            p4karl Karl Wirth added a comment -

            Please see JENKINS-61943 for workarounds.

            Show
            p4karl Karl Wirth added a comment - Please see JENKINS-61943 for workarounds.
            Hide
            skl Sylwia Kludacz added a comment -

            Would it be possible to implement a flag in P4 plugin to make this behavior configurable (e.g. if the overwrite option is checked, that should pass all the environmental variables to the build steps following perforce sync)?

            We are currently migrating all our jobs from old Perforce plugin to new P4 plugin and setting up global variables as per workaround, e.g. P4CLIENT= ${P$4_CLIENT} breaks old Perforce plugin functionality

            Show
            skl Sylwia Kludacz added a comment - Would it be possible to implement a flag in P4 plugin to make this behavior configurable (e.g. if the overwrite option is checked, that should pass all the environmental variables to the build steps following perforce sync)? We are currently migrating all our jobs from old Perforce plugin to new P4 plugin and setting up global variables as per workaround, e.g. P4CLIENT= ${P$4_CLIENT} breaks old Perforce plugin functionality

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              p4karl Karl Wirth
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: