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

Introduce overall init-matrix build task and post-matrix build task

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • matrix-project-plugin
    • None

      I like the CPPCheck Plugin and create Doxygen within my matrix projects. So far, each build in the matrix has got its own customized build script in the svn repo that is called by the matrix projects.
      I am missing an overall call, like 'init' that is called in advance to all matrix projects (windows/linux and 32/64bit create the x and y axis).
      Currently, doxygen + cppcheck is runnning in one of the matrix calles. I like clean architectures and kindly ask for a init and/or end hook that could be used to check for certain compliancies before one or all of the matrix builds are called. Thereby, you could run a cppcheck in advance and create the overall doxygen at the end. This would be a very clean and neat design. And it could avoid unnecessary builds. If a previous init check fails, jenkins could stop and not have any of the matrix projects build. Currently, it would have one of them fail, but the others may pass green...

      So to make a clean request:
      1.) we may need an overall init-matrix build task (as a hook to call any custom command or shell script) before any of the matrix builds are called.
      2.) we need an overall post-matrix build task (as a hook to call any custom command or shell script) once the last matrix build is called.
      Currently there seems to be no.

      To make it clear:
      Yes, there are pre and post build tasks. They are on the level of each matrix build! Means: they are called pre and post to each build script triggered in the matrix. So it is a pre+post-build task run in favor of each matrix build.
      What I suggest is an init+post-matrix build task that can be specified (call a dedicated shell script containing instructions for e.g. cppcheck) that is called once for the overall matrix projects.
      e.g. - do your pre-checking before any of the matrix projects - you could fail and skip any of the matrix builds and thereby reduce cost of CPU.
      e.g. - do your overall post-build actions valid for any matrix build like the overall doxygen generation.

      This could become a handy and useful feature for future releases, as it has potential to speed up processes and/or reduce workloads!

          [JENKINS-36741] Introduce overall init-matrix build task and post-matrix build task

          There are no comments yet on this issue.

            kohsuke Kohsuke Kawaguchi
            jacknob Lars Engelhard
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: