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

Support remapping source file paths in reports

      We generate the CodeStyle report inside a docker.

      All the source file paths in the report are generated based on the paths inside docker.

      When publishing to Jenkins those paths aren't mapping to the host that runs the Jenkins worker.

      It would help a lot if there was an option to map source code paths.

      Basically to specify source and target for the mapping:

      source: `/path/inside/docker`

      target: `/path/in/jenkins/workspace`

       

          [JENKINS-75009] Support remapping source file paths in reports

          Ulli Hafner added a comment -

          Are the source files also physically available in `/path/in/jenkins/workspace`? Or do you just want to render a different path?

          Ulli Hafner added a comment - Are the source files also physically available in `/path/in/jenkins/workspace`? Or do you just want to render a different path?

          Slava added a comment -

          drulli 

          Yes, the source files are physically available in `/path/in/jenkins/workspace`. We use a docker volume to inject the code into the CI docker, which runs the styling checks and emits the report.

          Slava added a comment - drulli   Yes, the source files are physically available in `/path/in/jenkins/workspace`. We use a docker volume to inject the code into the CI docker, which runs the styling checks and emits the report.

            drulli Ulli Hafner
            slava_tm Slava
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: