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

Matrix (multi-configuraton) jobs don't work with the SVN emulate clean workspace checkout strategy

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • subversion-plugin
    • None
    • Linux, x86, Jenkins 1.401, Subversion 1.24

      When the matrix job runs it will do the "clean" and update for a overall workspace first then do the same for the different configurations. When this happens the different configuration workspaces are deleted and a fresh checkout is done. Since each configuration has its own workspace, I don't think there needs to even be a separate general workspace.

      For instance if the workspace/repo has files a, b, c, the file system looks like this for a matrix job for configuration of database=oracle/sql:
      jobs/MatrixJob/workspace/a
      jobs/MatrixJob/workspace/b
      jobs/MatrixJob/workspace/c
      jobs/MatrixJob/workspace/database/oracle/a
      jobs/MatrixJob/workspace/database/oracle/b
      jobs/MatrixJob/workspace/database/oracle/c
      jobs/MatrixJob/workspace/database/sqla
      jobs/MatrixJob/workspace/database/sql/b
      jobs/MatrixJob/workspace/database/sql/c

      Since the general workspace is cleaned first, it will delete the database folder since it is a non-versioned file and print a message like:
      Cleaning up /home/jenkins/.jenkins/jobs/MatrixJob/workspace/.
      Deleting /home/jenkins/.jenkins/jobs/MatrixJob/workspace/./database <= this is not right!

      Then in the separate configuration, there will be a fresh checkout instead of a quick "clean" and update:
      Checking out a fresh workspace because there's no workspace at /home/jenkins/.jenkins/jobs/MatrixJob/workspace/database/oracle

          [JENKINS-9150] Matrix (multi-configuraton) jobs don't work with the SVN emulate clean workspace checkout strategy

          I am also experiencing this issue. With a multi-configuration job the configuration workspaces are always deleted when using emulate clean.

          Philip Bergqvist added a comment - I am also experiencing this issue. With a multi-configuration job the configuration workspaces are always deleted when using emulate clean.

            Unassigned Unassigned
            kmart216 David Humeniuk
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: