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

Auto cleanup and sync does not clean workspace properly using custom workspace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • p4-plugin
    • None
    • Jenkins ver. 1.635
      P4 Plugin 1.3.8
      Perforce Server version: P4D/LINUX26X86_64/2013.1/875993 (2014/06/09)

      We are trying to convert from the old perforce plugin to the new plugin p4-plugin.
      We want to use the "Auto cleanup and sync" options to create pristine workspace to run builds in. Currently I have a job that fails because the old build files are not removed properly by the plugin.

      I have attached the build log and scm config (sed:ed to remove specifics) for an build.

      Notes:
      1. The sync only runs for a sub dir of instead of whole project, but this might be a
      optimization.
      2. There is not output from rm. All the build directories should be detected as non-versioned and removed if I understand the "DELETE generated files" option for "Auto cleanup and sync" .
      3. The build dirs that should have been deleted are normally ignored using P4IGNORE=.p4ignore for development, but in the jenkins slaves does not have this defined and should therefore not ignore these files when running reconcile.
      4. p4 revert prints "/data/jenkins/workspace/utils-mainutils2_main/... - file(s) not opened on this client." which seems strange.

      Will supply any additional info needed.

            p4paul Paul Allen
            fkykko Staffan Forsell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: