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

Commit8bb5200

Browse files
Clarify pipeline from Git toggle switch (#540)
1 parent497155c commit8bb5200

File tree

3 files changed

+46
-2
lines changed

3 files changed

+46
-2
lines changed

‎_docs/configure-ci-cd-pipeline/pipelines.md‎

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,61 @@ Working with the inline editor is very convenient in the beginning, but it makes
115115

116116
You can click on the*Inline YAML* header and switch it to*Use YAML from URL* or*Use YAML from Repository*.
117117

118+
{% include
119+
image.html
120+
lightbox="true"
121+
file="/images/pipeline/create/pipeline-git-options.png"
122+
url="/images/pipeline/create/pipeline-git-options.png"
123+
alt="Pipeline resource options"
124+
caption="Pipeline resource options"
125+
max-width="60%"
126+
%}
127+
128+
###Using another Git repository
129+
130+
Loading the pipeline from a Git repository is the recommended way to associate a pipeline with a project once you are finished with it. Even though the inline editor is great for quick prototyping and experimentation, ideally all your pipelines should be under source control.
131+
132+
When you click this option from the drop-down menu you will can select any Git repository already connected to Codefresh along with a preview of the pipeline.
133+
134+
{% include
135+
image.html
136+
lightbox="true"
137+
file="/images/pipeline/create/pipeline-per-branch.png"
138+
url="/images/pipeline/create/pipeline-per-branch.png"
139+
alt="Load pipeline from Git"
140+
caption="Load pipeline from Git"
141+
max-width="60%"
142+
%}
143+
144+
Note that unlike other CI options the Git repository that contains the pipeline can be completely different from the Git repository that has the source code of your application.
145+
146+
The**Use branch from Git trigger** option is very important and defines from which branch of the Git repo the pipeline will be loaded from. In most cases you want to keep this enabled as it will make the pipeline load from the same branch that triggered the build.
147+
148+
For example if you open a new pull request for a branch named`feature-x` that has changes both in source code and in the pipeline definition itself, ideally you would want the pipeline responsible for the build to be the same one that contains the new changes in the`feature-x` branch.
149+
150+
If you disable this option then you can select a specific branch from the field directly above the switch. The option is great for organizations that want to lock down their pipelines.
151+
152+
For example, if you define`master` as the branch that will be used for this pipeline, then even if a developer creates a custom branch for their source code changes, they will not be able to change the pipeline itself to do something different. Their pipeline changes in their own branch will be ignored as all builds will always load the pipeline from`master`. This can be very useful for security sensitive pipelines.
153+
154+
155+
###Using any public URL
156+
157+
The URL option allows you to load the pipeline definition from any_public_
158+
118159
{% include
119160
image.html
120161
lightbox="true"
121162
file="/images/pipeline/create/pipeline-from-internal-repo.png"
122163
url="/images/pipeline/create/pipeline-from-internal-repo.png"
123164
alt="Pipeline from internal repo"
124165
caption="Pipeline from internal repo"
125-
max-width="60%"
166+
max-width="70%"
126167
%}
127168

128-
You can then copy and paste a URL to a raw Codefresh YAML file. This will allow you to load a Codefresh YAML from any public URL. Notice that a raw URL is needed in the case of GitHub.
169+
You can then copy and paste a URL to a raw Codefresh YAML file. This will allow you to load a Codefresh YAML from any URL.
170+
171+
172+
Notice that a raw URL is needed in the case of GitHub.
129173

130174
As an example, instead of using`https://github.com/codefresh-contrib/example-voting-app/blob/master/codefresh.yml` you should enter`https://raw.githubusercontent.com/codefresh-contrib/example-voting-app/master/codefresh.yml`
131175

44.1 KB
Loading
39.6 KB
Loading

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp