Commit 09075759 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Copy-edit docs for only: changes feature

parent a52960f5
...@@ -467,18 +467,19 @@ docker build: ...@@ -467,18 +467,19 @@ docker build:
``` ```
In the scenario above, if you are pushing multiple commits to GitLab, to an In the scenario above, if you are pushing multiple commits to GitLab, to an
exising branch, GitLab is going to create and trigger `docker build` if one of exising branch, GitLab is going to create and trigger `docker build` job,
the commits contains changes to the `Dockerfile` file or any of the files provided that one of the commits contains changes to the `Dockerfile` file or
inside `docker/scripts/` directory. changes to any of the files inside `docker/scripts/` directory.
CAUTION: **Warning:** CAUTION: **Warning:**
If you are pushing a **new** branch or a tag to GitLab, only/changes is going If you are pushing a **new** branch or a new tag to GitLab, only/changes is
to always evaluate to truth and GitLab will create a job. This feature is not going to always evaluate to truth and GitLab will create a job. This feature is
connected with merge requests yet, GitLab is creating pipelines before an user not combined with merge requests yet, and because GitLab is creating pipelines
creates a merge requests and specifies a target branch. Without a target branch before an user can create a merge request we don't know a target branch at
it is not possible to know what the common ancestor is in case of pushing a new this point. Without a target branchit is not possible to know what the common
branch, thus we always create a job in that case. This feature works best for ancestor is, thus we always create a job in that case. This feature works best for
stable branches like `master`. stable branches like `master` because in that case GitLab uses previous commit,
that is present in a branch, to compare against a newly pushed latest SHA.
## `tags` ## `tags`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment