Commit Graph

1074 Commits

Author SHA1 Message Date
Francisco Javier López 6ee1d8cf77 Add port section to CI Image object
In order to implement https://gitlab.com/gitlab-org/gitlab-ee/issues/10179
we need several modifications on the CI config file. We are
adding a new ports section in the default Image object.

Each of these ports will accept: number, protocol and name.

By default this new configuration will be only enabled in
the Web IDE config file.
2019-04-03 09:50:54 +00:00
Dmitriy Zaporozhets 478077747d Merge branch '47234-composable-auto-devops' into 'master'
Resolve "Composable Auto DevOps"

Closes #47234

See merge request gitlab-org/gitlab-ce!26520
2019-04-03 09:05:28 +00:00
John Jarvis 69b65a6b74 Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into jarv/dev-to-gitlab-2019-04-02 2019-04-02 10:12:32 +02:00
GitLab Release Tools Bot 3098259e90 Merge branch 'security-use-untrusted-regexp' into 'master'
Use UntrustedRegexp for CI refs matching

See merge request gitlab/gitlabhq!3005
2019-04-02 07:48:24 +00:00
Kamil Trzciński 1b6fe3ae22 Merge branch 'kube_helm_auto_devops_213' into 'master'
Bump Kubectl and Helm in Auto-DevOps.gitlab-ci.yml

See merge request gitlab-org/gitlab-ce!26534
2019-04-02 07:21:26 +00:00
Tiger 343e834330 Add required variables to Jobs/Build.gitlab-ci.yml 2019-04-02 13:32:00 +11:00
Tiger 3be46bdf08 Split Security Auto DevOps jobs into templates
Container Scanning, Dependency Scanning, License Management
and SAST parts of Auto DevOps now use the preexisting templates.

Auto DevOps and the DAST job template will now use a
shared job template instead of maintaining two copies
of the job. This also allows Auto DevOps to use custom
authentication with DAST.
2019-04-02 13:31:26 +11:00
Tiger ec5e032a12 Split non-security Auto-DevOps jobs into templates
This allows these templates to be used outside of Auto DevOps,
or easily excluded from Auto DevOps.

The security jobs in Auto DevOps differ slightly from the ones
that are already available as templates, they will be moved
next.
2019-04-02 13:29:43 +11:00
Thong Kuah 3bc946ade3 Bump Kubectl and Helm in Auto-DevOps.gitlab-ci.yml 2019-04-01 23:38:40 +13:00
Philippe Lafoucrière 6a25f8bc79
Fix Container Scanning for Kubernetes Runners
closes https://gitlab.com/gitlab-org/gitlab-ee/issues/6636
closes https://gitlab.com/gitlab-org/gitlab-ee/issues/5763
2019-03-31 08:58:01 -04: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
Dylan Griffith 3c25ec8827 Fix Auto DevOps missing domain error handling
For some reason this value can be an empty string and we want to ensure
that we correctly fail the job before a deploy. This is particularly
problematic at the moment when coupled with
https://gitlab.com/gitlab-org/gitlab-ce/issues/54760 as the user has no
easy way to recover without destroying the cluster and starting over.
2019-03-28 14:00:38 +11:00
James Fargher 01aa1ef77b Update dashboards to additionally use new environment selector
Deploy boards now will check for app.gitlab.com/env and
app.gitlab.com/app
2019-03-21 08:06:47 +00:00
Clement Ho 6a0702fe93 Merge branch '57115-just-in-time-k8s-resource-creation' into 'master'
Create project-specific Kubernetes resources just-in-time

See merge request gitlab-org/gitlab-ce!25586
2019-03-20 22:25:23 +00:00
Grzegorz Bizon a99fcc0c29 Merge branch '57598-use-vendored-files-for-ci-config' into 'master'
Resolve "Use vendored files for CI config"

Closes #57598

See merge request gitlab-org/gitlab-ce!25871
2019-03-20 21:12:30 +00:00
Tiger 325d504c3c Don't recreate Kubernetes namespaces if they exist
Instead of attempting to create or update a Kubernetes
namespace on every deploy, only do so when we know it
doesn't exist yet.
2019-03-20 12:04:46 +11:00
Tiger 89b0bc04b9 Create one Kubernetes namespace for a deployment
Instead of creating a Kubernetes namespace on every
cluster related to a project, only create one on the
cluster the project is about to be deployed to.
2019-03-20 12:04:46 +11:00
Tiger 98a14a498d Add build prerequisite for Kubernetes namespaces
Builds that have deployments require Kubernetes resources
to be created before the build can be deployed. These
resources are no longer created when the cluster is
created, which allows us to only create the resources
required by each specific build.
2019-03-20 12:04:46 +11:00
Tiger 00f0d356b7 Create framework for build prerequisites
Introduces the concept of Prerequisites for a CI build.
If a build has unmet prerequisites it will go through the
:preparing state before being made available to a runner.

There are no actual prerequisites yet, so current
behaviour is unchanged.
2019-03-20 12:04:40 +11:00
Tiger 42ca9c6f0d Add :preparing status to HasStatus
Introduces a new status for builds between :created and :pending
that will be used when builds require one or more prerequisite
actions to be completed before being picked up by a runner
(such as creating Kubernetes resources before deploying).

The existing :created > :pending transition is unchanged, so
only builds that require preparation will use the :preparing
status.
2019-03-20 11:48:31 +11:00
Victor Zagorodny 53842505ca Remove before_script from DAST vendored template 2019-03-19 08:35:24 +00:00
Robert Speicher f012e93482 Merge branch 'resolve-lib-gitlab-differences' into 'master'
Move EE specific code out of lib/gitlab

See merge request gitlab-org/gitlab-ce!25741
2019-03-18 15:11:21 +00:00
Matija Čupić dfacd3a02d
Move gitlab-org specific config to .gitlab-ci.yml 2019-03-15 16:37:27 +01:00
Matija Čupić 3b3b160241
Hardcode CodeQuality version used 2019-03-15 16:37:26 +01:00
Matija Čupić f2eac81bc8
Add Code-Quality CI template 2019-03-15 16:37:26 +01:00
Matija Čupić 3527e3e43c
Tidy up CI templates
Tidies up CI templates to have better formatting.

* Removes redundant whitespace
* Removes redundant newlines
2019-03-15 16:37:21 +01:00
Kamil Trzciński b22287f00f Make CI refs matching to to use UntrustedRegexp
This makes ref validation to use always `UntrustedRegexp`.
This also splits the existing RubySyntax into separate
class.
2019-03-15 14:38:28 +01:00
Grzegorz Bizon 51c1a49a66 Merge branch '58482-update-airminc/clair-local-scan-to-2.0.6' into 'master'
Update clair-local-scan to 2.0.6

Closes #58482

See merge request gitlab-org/gitlab-ce!25743
2019-03-15 13:25:41 +00:00
Stan Hu c048422fa2 Merge branch 'update-rubocop' into 'master'
Update rubocop target ruby version

See merge request gitlab-org/gitlab-ce!24804
2019-03-13 18:03:12 +00:00
Takuya Noguchi ba018b52bd Update clair-local-scan to 2.0.6 to support Ubuntu 18.04
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2019-03-14 00:21:19 +09:00
Nick Thomas 9f05e97aad
Run rubocop -a 2019-03-13 13:42:43 +00:00
walkafwalka 7f0f752aab Use project name and id in review app url instead of project path slug 2019-03-12 18:11:28 -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
Yorick Peterse 0cabb555f0
Backport Gitlab::Ci::Model from EE
This backports the EE changes to Gitlab::Ci::Model back into CE,
ensuring the code is the same for both versions.
2019-03-12 11:10:39 +01:00
Takuya Noguchi 37f9cf8a26 Use curl silent/show-error options on Auto DevOps
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2019-03-11 16:54:40 +09:00
Victor Zagorodny 2cb0e98401 Use vendored templates for Sec Products
Update Dependency Scanning and add other templates
2019-03-08 03:39:35 +00:00
Victor Zagorodny eb37c34906 Add Dependency Scanning vendored template for EE 2019-03-07 09:31:37 +00:00
Grzegorz Bizon 80fea82f3a Merge branch 'auto-devops-tags' into 'master'
Add Auto DevOps build job for tags

See merge request gitlab-org/gitlab-ce!25718
2019-03-07 08:55:24 +00:00
Andrew Newdigate 3288e1a874 Adds the Rubocop ReturnNil cop
This style change enforces `return if ...` instead of
`return nil if ...` to save maintainers a few minor review points
2019-03-06 17:51:56 +02:00
Stan Hu d11b112664 Merge branch 'fix/gb/fix-bridge-jobs-variables-policy' into 'master'
Fix bridge jobs only/except variables policy

Closes #58199

See merge request gitlab-org/gitlab-ce!25710
2019-03-05 22:27:22 +00:00
Grzegorz Bizon d9fb27f42a Make serverless template a valid abstract template 2019-03-04 21:09:38 +08:00
Grzegorz Bizon f5579abc9a Make it possible to easily deploy serverless functions
This commits add a job that is going to be triggered whenever someone
adds `[serverless deploy-functions]` text into their commit message.

This make it really simple to deploy functions in FaaS-only project.
2019-03-04 21:09:38 +08:00
Grzegorz Bizon 27417ccf3c Add Serverless CI/CD template 2019-03-04 21:09:38 +08:00
Grzegorz Bizon 4b0036b87e Merge branch 'allow-to-recursively-include' into 'master'
Allow to recursively expand includes

Closes #55937 and #56836

See merge request gitlab-org/gitlab-ce!24356
2019-03-04 09:06:42 +00:00
walkafwalka f6d90ccfb5 Add performance, dast, and review jobs to tags pipeline 2019-03-03 23:50:04 -08:00
walkafwalka 6208d83525 Add build for tags 2019-03-03 23:50:04 -08:00
Grzegorz Bizon 981c248863 Do not raise when adding undefined variables resource 2019-03-02 15:18:14 +01:00
Kamil Trzciński c78861bc42 Allow to recursively expand includes
This change introduces a support for nesting the includes,
allowing to evaluate them in context of the target,
by properly respecting the relative inclusions and user permissions
of another projects, or templates.
2019-03-01 15:55:53 +01:00
Shinya Maeda f62dc67d26 Add suffix for merge request event
Fix

ok

Add spec

Fix

ok

Fix

Add changelog

Fix

Add memoization

a

fix
2019-03-01 22:52:38 +09:00
Jason Lenny f50b0c05e1 Add iOS-fastlane template for .gitlab-ci.yml 2019-02-28 01:29:43 +00:00