This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      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

            Assignee:
            Unassigned
            Reporter:
            David Humeniuk
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: