The placement of the `checkout' step in `matrix' pipeline jobs

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

The placement of the `checkout' step in `matrix' pipeline jobs

Anton Shepelev
Hello, all

How is `matrix' supposed to interact with `checkout'?  If I
have several axes, of which some require change of agent (OS
version), and some do not (Debug or Release mode), where
shall place the `checkout' step?  Currently, I have it at
this path in my Jenkinsfile:

       pipeline -> stages -> stage('All')  ->
       matrix   -> stages -> stage('Build') -> steps

-- that is, inside a matrix cell.  Therefore, a checkout is
executed for each cell, regardless of whether it had already
been done on the same agent machine. Is it intended usage of
the `matrix' element?  If not, how can I cause checkout to
be performed once per agent, rather than once per matrix

You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit