You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
This step is not required and is added automatically for the main repository.
13
-
</div>
14
11
15
12
`YAML`
16
13
{% highlight yaml %}
@@ -55,3 +52,26 @@ step_name:
55
52
{{site.data.callout.callout_info}}
56
53
If you want to extend the git-clone step you can use the freestyle step. Example how to do it you can find[here]({{ site.baseurl }}/docs/yaml-examples/examples/git-clone-private-repository-using-freestyle-step/)
57
54
{{site.data.callout.end}}
55
+
56
+
##Skip or customize default clone
57
+
58
+
A git clone step is transparently added to git attached pipelines without you having to explicitly add a step into the pipeline. This is a convenience to enable easy CI pipelines.
59
+
If you do not require git cloning, or you would like to customize the implicit git cloning behaviour, you can choose to skip the automatically added git clone step.
60
+
61
+
There are 2 ways to do that:
62
+
63
+
1. Add a pipeline environment variable called`CF_SKIP_MAIN_CLONE` with value of`true`.
64
+
65
+
-or-
66
+
67
+
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: