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

Jenkins could not able to locate Property file referenced in code

    Details

    • Similar Issues:

      Description

      We have a simple java code which reads values from say test.properties file inside the project. We specify path of this property file relative to project directory.
      The code runs fine on both windows and linux platforms.
      But when we build this project on Jenkins, it fails to locate the file saying FileNotFoundException.

      We have tried various ways of changing file path to project root, both files in same directory etc. but couldnt figure out where does Jenkins look for the file.

      We are attaching both the files - property file and code(2 ways to refer property file) which refers this property file.

        Attachments

        1. UnitTests.properties
          0.0 kB
          mayur mohite
        2. Utils.java
          0.4 kB
          mayur mohite
        3. Utils.java
          0.5 kB
          mayur mohite

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          I don't understand how it is related to Jenkins. How do you launch the code? From a plugin? If yes, provide a link to the GitHub repo

          Show
          oleg_nenashev Oleg Nenashev added a comment - I don't understand how it is related to Jenkins. How do you launch the code? From a plugin? If yes, provide a link to the GitHub repo
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Didn't get a response from the requester

          Show
          oleg_nenashev Oleg Nenashev added a comment - Didn't get a response from the requester

            People

            • Assignee:
              oleg_nenashev Oleg Nenashev
              Reporter:
              mayurjenkins mayur mohite
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: