Commit Graph

51 Commits

Author SHA1 Message Date
GitLab Bot 136ec65df5 Add latest changes from gitlab-org/gitlab@master 2022-09-21 18:10:44 +00:00
GitLab Bot 37a0f5e2cf Add latest changes from gitlab-org/gitlab@master 2022-09-16 12:11:31 +00:00
GitLab Bot c014b6b4e5 Add latest changes from gitlab-org/gitlab@master 2022-09-14 15:12:56 +00:00
GitLab Bot 67fa8362ae Add latest changes from gitlab-org/gitlab@master 2022-05-06 15:09:03 +00:00
GitLab Bot 78f7d2e726 Add latest changes from gitlab-org/gitlab@master 2021-11-19 18:12:50 +00:00
GitLab Bot 67049ac7aa Add latest changes from gitlab-org/gitlab@master 2021-10-26 18:09:19 +00:00
GitLab Bot a74cb0526c Add latest changes from gitlab-org/gitlab@master 2021-09-08 15:09:10 +00:00
GitLab Bot db4d102e60 Add latest changes from gitlab-org/gitlab@master 2021-08-27 15:10:21 +00:00
GitLab Bot 4bf395cded Add latest changes from gitlab-org/gitlab@master 2021-08-03 21:09:39 +00:00
GitLab Bot 2691cff829 Add latest changes from gitlab-org/gitlab@master 2021-08-02 06:10:20 +00:00
GitLab Bot a246b5fffa Add latest changes from gitlab-org/gitlab@master 2021-07-27 06:09:01 +00:00
GitLab Bot 10130901f1 Add latest changes from gitlab-org/gitlab@master 2021-04-15 15:09:11 +00:00
GitLab Bot 2e1b10493f Add latest changes from gitlab-org/gitlab@master 2021-04-06 15:09:23 +00:00
GitLab Bot 61ee5c3635 Add latest changes from gitlab-org/gitlab@master 2021-04-06 09:09:03 +00:00
GitLab Bot a156fc95eb Add latest changes from gitlab-org/gitlab@master 2021-03-25 12:09:19 +00:00
GitLab Bot 18873553de Add latest changes from gitlab-org/gitlab@master 2021-01-14 12:10:54 +00:00
GitLab Bot fde3e0435c Add latest changes from gitlab-org/gitlab@master 2020-12-14 15:09:40 +00:00
GitLab Bot 418c3b2900 Add latest changes from gitlab-org/gitlab@master 2020-09-30 09:10:11 +00:00
GitLab Bot 6724a6ee6b Add latest changes from gitlab-org/gitlab@master 2020-09-04 12:08:27 +00:00
GitLab Bot f6a3028be7 Add latest changes from gitlab-org/gitlab@master 2020-08-12 15:10:02 +00:00
GitLab Bot 9215d9f761 Add latest changes from gitlab-org/gitlab@master 2020-07-15 12:09:26 +00:00
GitLab Bot 1c75400c24 Add latest changes from gitlab-org/gitlab@master 2020-07-03 09:08:53 +00:00
GitLab Bot 65f5f75e3a Add latest changes from gitlab-org/gitlab@master 2020-06-25 15:08:37 +00:00
GitLab Bot 810bd2a662 Add latest changes from gitlab-org/gitlab@master 2020-06-02 12:08:33 +00:00
GitLab Bot f569792df8 Add latest changes from gitlab-org/gitlab@master 2020-04-27 18:09:41 +00:00
GitLab Bot f78257cbdd Add latest changes from gitlab-org/gitlab@master 2020-03-06 15:08:05 +00:00
GitLab Bot 4ce0bee95d Add latest changes from gitlab-org/gitlab@master 2020-01-14 12:07:41 +00:00
GitLab Bot eb30dd6e28 Add latest changes from gitlab-org/gitlab@master 2020-01-13 12:08:04 +00:00
GitLab Bot e3e300557f Add latest changes from gitlab-org/gitlab@master 2020-01-08 12:07:59 +00:00
GitLab Bot c0d8f9f3f9 Add latest changes from gitlab-org/gitlab@master 2020-01-03 09:07:33 +00:00
GitLab Bot 143f196f8b Add latest changes from gitlab-org/gitlab@master 2019-11-18 18:06:53 +00:00
Fabio Pitino ca6a1f33f9 CE port for pipelines for external pull requests
Detect if pipeline runs for a GitHub pull request

When using a mirror for CI/CD only we register a pull_request
webhook. When a pull_request webhook is received, if the
source branch SHA matches the actual head of the branch in the
repository we create immediately a new pipeline for the
external pull request. Otherwise we store the
pull request info for when the push webhook is received.

When using "only/except: external_pull_requests" we can detect
if the pipeline has a open pull request on GitHub and create or
not the job based on that.
2019-09-05 15:53:48 +01:00
Fabio Pitino 42d99460d3 Allow use of legacy triggers with feature flag
Keep feature flag disabled by default and turn off
all functionality related to legacy triggers.

* Block legacy triggers from creating pipeline
* Highlight legacy triggers to be invalid via the UI
* Make legacy triggers invalid in the model
2019-07-15 15:05:22 +02:00
Stan Hu f93b2e02a5 Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
Shinya Maeda bf639fd504 Create detached merge request pipelines
By using `refs/merge-requests/:iid/head`

ok

ok

Improve naming nicely

Add nice tests

add nice tests

fix some more

revert
2019-03-29 13:58:45 +07:00
Yorick Peterse 018fc6c696
Backport allow_mirror_update for Chain::Command
This backports the allow_mirror_update update field for Chain::Command
from EE to CE. There's no particular reason to keep this in EE. Doing so
would require refactoring of CE as there currently is no easy way to
inject new Struct members into the Chain::Command class.
2019-03-12 11:10:40 +01:00
Shinya Maeda 314062fec5 Persist source sha and target sha for merge pipelines
source_sha and target_sha are used for merge request pipelines
2019-02-27 17:12:04 +09:00
James Fargher 2d19b1adef Move ChatOps to Core
ChatOps used to be in the Ultimate tier.
2019-02-20 21:29:48 +00:00
Douwe Maan ca6fbe8a79 Merge branch '18667-handle-push-opts' into 'master'
Handle 'git push -o ci.skip'

Closes #18667

See merge request gitlab-org/gitlab-ce!15643
2019-01-02 15:50:32 +00:00
Jonathon Reinhart ba781484c7 Add support for Git push options, specifically ci.skip
gitlab-org/gitlab-shell!166 added support for collecting push options
from the environment, and passing them along to the
/internal/post_receive API endpoint.

This change handles the new push_options JSON element in the payload,
and passes them on through to the GitPushService and GitTagPushService
services.

Futhermore, it adds support for the first push option, ci.skip.  With
this change, one can use 'git push -o ci.skip' to skip CI pipe
execution. Note that the pipeline is still created, but in the "skipped"
state, just like with the 'ci skip' commit message text.

Implements #18667
2018-12-31 13:57:53 -05:00
Matija Čupić a1be580979
Implement Command#ambiguous_ref? 2018-12-08 19:28:56 +01:00
Matija Čupić b6c8d3ac9f
Reintroduce Command#protected_ref? 2018-12-08 19:28:54 +01:00
Matija Čupić 2edc02143b
Prevent creating pipelines with ambiguous refs 2018-12-08 19:28:33 +01:00
Matija Čupić 1bf5806888
Use full ref when possible to avoid ambiguity 2018-12-08 19:25:44 +01:00
Shinya Maeda e62bfc7817 Merge request pipelines 2018-12-05 15:57:52 +09:00
gfyoung 06892e88f5 Enable frozen string for lib/gitlab/ci
Enables frozen string for the following:

* lib/gitlab/ci/*.rb
* lib/gitlab/ci/build/**/*.rb
* lib/gitlab/ci/config/**/*.rb
* lib/gitlab/ci/pipeline/**/*.rb
* lib/gitlab/ci/reports/**/*.rb

Partially addresses #47424.
2018-10-26 16:36:42 -07:00
Matija Čupić 317477fc67
Extend Gitlab::Ci::Pipeline::Chain::Command with variables_attributes 2018-04-18 19:28:59 +02:00
Gabriel Mazetto 5c7a738105 [CE] Add Naming/FileName rule checking expected class/module per filename 2018-03-08 12:56:54 +00:00
Kamil Trzcinski b5f6a5f91f Add Chain::Command specs 2017-12-08 12:01:15 +01:00
Kamil Trzcinski 865341acf8 Fix a bug of before_sha being inproperly evaluated to `checkout_sha` 2017-12-08 12:01:15 +01:00