Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce8b77d

Browse files
Small updates to git-clone step
1 parent5a6a818 commitce8b77d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎_docs/codefresh-yaml/steps/git-clone.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ step_name:
5050
|`title`| The free-text display name of the step.| Optional|
5151
|`description`| A basic, free-text description of the step.| Optional|
5252
|`stage`| Parent group of this step. See[using stages]({{site.baseurl}}/docs/codefresh-yaml/stages/) for more information.| Optional|
53-
|`working_directory`| The directory to which the repository is cloned. It can be an explicit path in the container's file system, or a variable that references another step. The default value is {% raw %}`${{main_clone}}`{% endraw %}.| Default|
53+
|`working_directory`| The directory to which the repository is cloned. It can be an explicit path in the container's file system, or a variable that references another step. The default value is {% raw %}`${{main_clone}}`{% endraw %}, but note that the default will only be used if you name your step`main_clone`. See the example on[working inside the cloned directory]({{site.baseurl}}/docs/yaml-examples/examples/git-checkout/#working-inside-the-cloned-directory) for more information.| Default|
5454
|`git`| The name of the[git integration]({{site.baseurl}}/docs/integrations/git-providers/) you want to use. If left empty, Codefresh will attempt to use the git provider that was used during account sign-up. Note that this might have unexpected results if you are changing your Git integrations.| Required|
5555
|`repo`| path of the repository without the domain name in the form of`my_username/my_repo`| Required|
5656
|`revision`| The revision of the repository you are checking out. It can be a revision hash or a branch name. The default value is`master`.| Default|
@@ -222,7 +222,6 @@ There are 2 ways to do that:
222222

223223
-or-
224224

225-
{:start="2"}
226225
2. Add a step with key`main_clone` to your pipeline. This step can be of any type and can do any action. This step will override the default clone implementation. for example:
227226

228227
```yaml
@@ -321,7 +320,8 @@ steps:
321320
- [Creating pipelines]({{site.baseurl}}/docs/configure-ci-cd-pipeline/pipelines/)
322321
- [Git integrations]({{site.baseurl}}/docs/integrations/git-providers/)
323322
- [YAML steps]({{site.baseurl}}/docs/codefresh-yaml/steps/)
324-
323+
- [Git Checkout Examples]({{site.baseurl}}/docs/yaml-examples/examples/git-checkout/)
324+
- [Custom Git Commands]({{site.baseurl}}/docs/yaml-examples/examples/git-checkout-custom/)
325325
326326
327327

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp