• 5.0.0-beta3

      I have the following workspace structure:

      - $WORKSPACE/git-checkout
      - $WORKSPACE/artifacts

      The codes are build with (from $WORKSPACE)

      make -C git-checkout ARTIFACTS_DIR=${WORKSPACE}/artifacts

      which would write output files to $WORKSPACE/artifacts, including pylint output, which contains lines like this

      src/updates/update.py:028: [E0611(no-name-in-module), ] No name 'updates' in module 'utils'

      gitblamer is unable the generate blames from this annotation, with series of warnings like this:

      <Git Blamer> Using GitBlamer to create author and commit information for all warnings.
      <Git Blamer> GIT_COMMIT=c636547ad11d989ef8f984591468cc00c46fb345, workspace=/var/jenkins/build/workspace/project-builder/git-checkout
      <Git Blamer> Skipping non-workspace file src/updates/update.py (workspace = /var/jenkins/build/workspace/project-builder/git-checkout, absolute = /src/updates/update.py.
      <Git Blamer> Skipping file src/updates/update.py, no result found.

      It appears that git-blamer failed to get the correct absolute path for the files.

          [JENKINS-48302] gitblamer failed to parse relative file path

          Mathieu Zhang created issue -
          Mathieu Zhang made changes -
          Environment New: Jenkins v2.9.0
          Mathieu Zhang made changes -
          Description Original: I have the following workspace structure:

          {{- $WORKSPACE/git-checkout}}
          {{- $WORKSPACE/artifacts}}

          The codes are build with (from $WORKSPACE)

          {{make -C git-checkout ARTIFACTS_DIR=$\{WORKSPACE}/artifacts}}

          which would write output files to $WORKSPACE/artifacts, including pylint output, which contains lines like this

          {{src/updates/update.py:028: [E0611(no-name-in-module), ] No name 'updates' in module 'utils'}}


          gitblamer is unable the generate blames from this annotation, with series of warnings like this:

          {{<Git Blamer> Using GitBlamer to create author and commit information for all warnings.}}
          {{<Git Blamer> GIT_COMMIT=c636547ad11d989ef8f984591468cc00c46fb345, workspace=/var/jenkins/build/workspace/project-builder/git-checkout}}
          {{<Git Blamer> Skipping non-workspace file /var/jenkins/build/workspace/project-builder/git-checkout/src/updates/update.py (workspace = /var/jenkins/build/workspace/project-builder/git-checkout, absolute = /src/updates/update.py.}}
          {{<Git Blamer> Skipping file src/updates/update.py, no result found.}}

          It appears that git-blamer failed to get the correct absolute path for the files.
          New: I have the following workspace structure:

          {{- $WORKSPACE/git-checkout}}
           {{- $WORKSPACE/artifacts}}

          The codes are build with (from $WORKSPACE)

          {{make -C git-checkout ARTIFACTS_DIR=$\{WORKSPACE}/artifacts}}

          which would write output files to $WORKSPACE/artifacts, including pylint output, which contains lines like this

          {{src/updates/update.py:028: [E0611(no-name-in-module), ] No name 'updates' in module 'utils'}}

          gitblamer is unable the generate blames from this annotation, with series of warnings like this:

          {{<Git Blamer> Using GitBlamer to create author and commit information for all warnings.}}
           {{<Git Blamer> GIT_COMMIT=c636547ad11d989ef8f984591468cc00c46fb345, workspace=/var/jenkins/build/workspace/project-builder/git-checkout}}
           {{<Git Blamer> Skipping non-workspace file src/updates/update.py (workspace = /var/jenkins/build/workspace/project-builder/git-checkout, absolute = /src/updates/update.py.}}
           {{<Git Blamer> Skipping file src/updates/update.py, no result found.}}

          It appears that git-blamer failed to get the correct absolute path for the files.
          Ulli Hafner made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Ulli Hafner made changes -
          Released As New: 5.0.0-beta3
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]

            drulli Ulli Hafner
            mlfz Mathieu Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: