Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-11540

Always clear workspace

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • CI
    • None

    Description

      The build may fail after refactorings as the working directory on the node is not empty prior to the SCM checkout (and some folders are never overwritten by an SCM checkout).
      That leads to errors like the following:

      ....
      [INFO] --- apache-rat-plugin:0.14:check (rat-check) @ sling-maven-plugin ---
      [WARNING] Files with unapproved licenses:
        parent/target/.plxarc
        parent/target/rat.txt
        relocate/target/.plxarc
        relocate/target/rat.txt
      ...
      [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.14:check (rat-check) on project sling-maven-plugin: Too many files with unapproved license: 1236 See RAT report in: /home/jenkins/jenkins-agent/workspace/odules_sling-maven-plugin_master/jdk_1.8_latest/target/rat.txt -> [Help 1]
      

      (the log is from https://ci-builds.apache.org/job/Sling/job/modules/job/sling-maven-plugin/job/master/129/consoleFull).

      This is due to the fact that the modules parent and relocate have been deleted, but their orphaned target directories are not removed and survive a build.

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h