Dynamic Pipelines in Jenkins

0

Good morning, I'm starting with Jenkins and I have a doubt. I have a series of Jobs in Jenkins (eg J1, J2, J3, J4 and J5).

And the first one generates a .txt file (which could be modified to any type of file) with the following jobs to be executed in whatever order. That is, it will sometimes be executed: J2, J3, J4 and J5

But there could be other cases:

J2, J4 and J5.

J3 and J5. [...]

Do you know if there is a plugin that can help me? Or if you can create a Pipeline through code?

Greetings and thanks in advance!

    
asked by Kike Acedo Dorado 26.10.2016 в 10:11
source

1 answer

0

with Jenkins pipelines you can generate code with conditions

Ex:

Jenkinsfile (Declarative Pipeline)

when {
    // A or B
    expression { return A || B }
}
steps {
    /* step */
}

I leave the link where I get the information

link

    
answered by 20.02.2017 в 18:57