Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-16324

JUnit parser makes unfair modification-date comparison.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Low Low
    • 5.10.1.1
    • None
    • None
    • None

      My error message is as follows:

      File /tai/bamboo/bamboo-agent-home/xml-data/build-dir/INF-CLEAN-CC61/cleanuptask.xml was ignored because it was modified (2015-09-08 15:45:50.000) before task started (2015-09-08 15:45:50.513)

      As you can see, the file time-stamp is only accurate to the exact second. Time stamps on the file system are truncated to the nearest second. Knowing when the task started is accurate to the millisecond. To compare one truncated number to a non-truncated number and that comparison causing a build failure is an unfair comparison.

      I recommend you detect whether that file was created before the task started, by using the task-start-time by truncating both numbers, as defined by the file system.

              Unassigned Unassigned
              0b0a6607a9a8 Tyler Mace
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: