1

I want to run several gradle tasks seperatly on the same gradle project.

With different scheduling for example: one task to create a baseline, and one task for periodic analysis of the baseline.

I saw these posts:

post1

post2

Does jenkins matrix configuration can help me with that?

I see it's mainly to run on a different JDK and different OS,

or I can actually define config1 with gradle_task1 that will be run

and then only when I choose to run of config2 with gradle_task2 on the same project?

Community
  • 1
  • 1
Elad Benda
  • 35,076
  • 87
  • 265
  • 471

1 Answers1

1

What you can do is have a 'TextAxis' as your axis type and give it values of the gradle tasks. I think this comes as standard

task definition

Then in the gradle plugin

use ${task} as the task you want to run

gradle plugin

I think you could then pick the task you want based on the matrix combination plugin as you mentioned.

If you want tasks to run concurrently then you need to check the 'execute concurrent build' box on the matrix job

KeepCalmAndCarryOn
  • 8,817
  • 2
  • 32
  • 47