Anton Shepelev
unread,Sep 1, 2020, 10:24:15 AM9/1/20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jenkins...@googlegroups.com
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
cell?