Circle CI has a "config.yml" file. This file contains the configuration and it contains the steps in a job. There is a "checkout" included in the steps of the config.yml. what does the "checkout" do?
This is a how a basic sample config for circleci look like:
version: 2
jobs:
build:
docker:
- image: alpine:3.7
steps:
- checkout
- run:
name: The First Step
command: |
echo 'Hello World!'
What does the "checkout" do? Special step used to check out source code to the configured path (defaults to the working_directory). The reason this is a special step is because it is more of a helper function designed to make checking out code easy for you.
Additional Info: https://circleci.com/docs/2.0/configuration-reference/#checkout
In the case of checkout, the step type is just a string with no additional attributes:
- checkout
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With