Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gitlab-ci
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Clea OS
infrastructure
gitlab-ci
Commits
f598e54a
Commit
f598e54a
authored
2 years ago
by
Lorenzo Pagliai
Browse files
Options
Downloads
Patches
Plain Diff
Insert testing.yml for testing purpose
parent
b2ef9661
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common.yml
+0
-33
0 additions, 33 deletions
common.yml
testing.yml
+14
-0
14 additions, 0 deletions
testing.yml
with
14 additions
and
33 deletions
common.yml
+
0
−
33
View file @
f598e54a
...
...
@@ -27,39 +27,6 @@ variables:
variables
:
# Include git submodules
GIT_SUBMODULE_STRATEGY
:
recursive
rules
:
# Explicitly allow externally triggered pipelines in every case
-
if
:
$CI_PIPELINE_SOURCE == "pipeline" || $CI_PIPELINE_SOURCE == "api"
# Do not run pipelines on forked projects.
# The pipelines would not work anyway because of the users permissions.
# There are two cases catched here:
# 1. The project is forked into someones gitlab namespace and a MR to
# include a change into this forked project is created. In this case
# is the CI_PROJECT_ROOT_NAMESPACE not seco-ne but the
# namespace the fork lives in.
# 2. The MR from the forked project is created to merge the change into this
# the project in the seco-ne namespace (customer sending
# change to us). Here the the IDs used below differ.
#
-
if
:
$CI_PROJECT_ROOT_NAMESPACE != "seco-ne"
when
:
never
-
if
:
$CI_MERGE_REQUEST_SOURCE_PROJECT_ID != $CI_MERGE_REQUEST_PROJECT_ID
when
:
never
# FIXME: Unfortunately we cannot use variables in regular expressions due to a
# GitLab limitation: https://gitlab.com/gitlab-org/gitlab/-/issues/209904
# As soon as this get fixed, use the regex based rules below instead of checking
# against the MASTER_BRANCH variable.
# Run pipeline if target branch of the merge request has an integration target, i.e.
# INTEGRATION contains a line beginning with the target branch followed by a colon.
# This also implies that the pipeline runs in merge request context only.
# - if: $INTEGRATION =~ /^$CI_MERGE_REQUEST_TARGET_BRANCH_NAME:/m
-
if
:
$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $MASTER_BRANCH
# Run pipeline on target branch after merging a merge request.
# - if: $INTEGRATION =~ /^$CI_COMMIT_BRANCH:/m
-
if
:
$CI_COMMIT_BRANCH == $MASTER_BRANCH
-
if
:
$CI_MERGE_REQUEST_IID
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
when
:
always
.yamllint
:
extends
:
.infrastructure
...
...
This diff is collapsed.
Click to expand it.
testing.yml
0 → 100644
+
14
−
0
View file @
f598e54a
stages
:
-
testing
testing
:
stage
:
testing
tags
:
-
infrastructure
timeout
:
10m
image
:
secodocker/manifest-test:vtemp
tags
:
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
when
:
always
script
:
-
echo ${CI_PROJECT_ROOT_NAMESPACE}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment