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

ExportXMLWordPrintable

      Here are two scenarios that are currently impossible to implement properly.

      Scenario 1:
      There are 4 DB servers. Two servers run RDBMS version 1 and two servers run RDBMS version 2. There is a product that must work with both versions of RDBMS. There is a matrix job that has axis "db" with values "1" and "2".

      • It should be possible for the build with configuration "db=1" to lock one of RDBMS with version 1 and for the build with configuration "db=2" to lock one of RDBMS with version 2.

      Scenario 2:
      There is a pool of DB servers. These servers require some periodic maintenance (DB restart, health check, cleanup, whatever). There is a cleanup matrix job with ElasticAxis axis iterating over a label whose all DB servers have (ElasticAxis node=db).

      • It should be possible to lock each build according to its configuration that is value of label node.

      The easiest way seems to be to threat "label" parameter of job configuration for lockable-resources-plugin as a groovy expression. This groovy expression can access build configuration, axis values, etc and produce the resource label to be actually used to search for resources.

        1. [Untitled]001.jpg
          [Untitled]001.jpg
          382 kB
        2. [Untitled]002.jpg
          [Untitled]002.jpg
          357 kB
        3. [Untitled]003.jpg
          [Untitled]003.jpg
          300 kB

            Assignee:
            Unassigned
            Reporter:
            Nikolay Martynov
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: