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

Use user.name system property only as the last option

XMLWordPrintable

      Java don't declare a portable way how to obtain a current user. There is a system property user.name which can be easy re-defined and in Cloud environment it might contain a different value that expected. In that case this plug-in doesn't have an effect during execution on such a platform..

      Based on above, we should obtain logged user and if an error occurred during that procedure, we can try to use user.name as that last option.

            pajasoft Pavel Janoušek
            pajasoft Pavel Janoušek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: