S

Satya • 2.31K Points
Master

Q. What is the purpose of the 'checkout scm' command in a Jenkinsfile?

  • (A) Checks for updates
  • (B) Clones the repository configured in the job
  • (C) Deletes workspace
  • (D) Initializes Jenkins environment
  • Correct Answer - Option(B)
  • Views: 6
  • Filed under category Jenkins
  • Hashtags:

Explanation by: Satya
'checkout scm' clones the source code from the SCM repository defined in the job configuration.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.