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

Maven system properties are not passed to unit tests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Trivial Trivial
    • maven-plugin
    • None
    • Platform: All, OS: All

      I settled a unit test which is based upon system properties.

      When I launch it locally with :
      > mvn test -DmyProperty=hello
      The system property "myProperty" is passed to my test case (that is to say, when
      I do System.getProperty("myProperty"), "hello" is returned)

      Whereas when I launch the same test under hudson, system properties are not set
      (System.getProperty("myProperty") returns null)

            Unassigned Unassigned
            fcamblor Frédéric Camblor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: