79774694

Date: 2025-09-25 10:42:34
Score: 1
Natty:
Report link

You have three commands here:

  1. checkout scm # This is the basic jenkins clone which you often don't even need to explicitly call

  2. dir() # Make a work dir and run some commands insideit

  3. checkout( .. # Checkout using the git plugin https://plugins.jenkins.io/git/ with a lot more control over the checkout behavior

In this case, the you are making two checkouts, one inside a subdir and with more detailed options (potentially overriding the branch or upstream URL).

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Fadeway