Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ada43116
Commit
ada43116
authored
Aug 31, 2021
by
Hordur Freyr Yngvason
Committed by
Stan Hu
Aug 31, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature flagged Build.latest.gitlab-ci.yml
parent
c85edcc1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
0 deletions
+47
-0
config/feature_flags/development/redirect_to_latest_template_jobs_build.yml
...gs/development/redirect_to_latest_template_jobs_build.yml
+8
-0
lib/gitlab/ci/templates/Jobs/Build.latest.gitlab-ci.yml
lib/gitlab/ci/templates/Jobs/Build.latest.gitlab-ci.yml
+38
-0
lib/gitlab/template/gitlab_ci_yml_template.rb
lib/gitlab/template/gitlab_ci_yml_template.rb
+1
-0
No files found.
config/feature_flags/development/redirect_to_latest_template_jobs_build.yml
0 → 100644
View file @
ada43116
---
name
:
redirect_to_latest_template_jobs_build
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/67782
rollout_issue_url
:
https://gitlab.com/gitlab-org/gitlab/-/issues/337990
milestone
:
'
14.2'
type
:
development
group
:
group::configure
default_enabled
:
false
lib/gitlab/ci/templates/Jobs/Build.latest.gitlab-ci.yml
0 → 100644
View file @
ada43116
# WARNING: This latest template is for internal FEATURE-FLAG TESTING ONLY.
# It is not meant to be used with `include:`.
# This template is scheduled for removal when testing is complete: https://gitlab.com/gitlab-org/gitlab/-/issues/337987
build
:
stage
:
build
image
:
'
registry.gitlab.com/gitlab-org/cluster-integration/auto-build-image:v1.3.1'
variables
:
DOCKER_TLS_CERTDIR
:
'
'
services
:
-
name
:
'
docker:20.10.6-dind'
command
:
[
'
--tls=false'
,
'
--host=tcp://0.0.0.0:2375'
]
script
:
-
|
if [[ -z "$CI_COMMIT_TAG" ]]; then
export CI_APPLICATION_REPOSITORY=${CI_APPLICATION_REPOSITORY:-$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG}
export CI_APPLICATION_TAG=${CI_APPLICATION_TAG:-$CI_COMMIT_SHA}
else
export CI_APPLICATION_REPOSITORY=${CI_APPLICATION_REPOSITORY:-$CI_REGISTRY_IMAGE}
export CI_APPLICATION_TAG=${CI_APPLICATION_TAG:-$CI_COMMIT_TAG}
fi
-
/build/build.sh
rules
:
-
if
:
'
$BUILD_DISABLED'
when
:
never
-
if
:
'
$AUTO_DEVOPS_PLATFORM_TARGET
==
"EC2"'
when
:
never
-
if
:
'
$CI_COMMIT_TAG
||
$CI_COMMIT_BRANCH'
build_artifact
:
stage
:
build
script
:
-
printf "To build your project, please create a build_artifact job into your .gitlab-ci.yml file.\nMore information at https://docs.gitlab.com/ee/ci/cloud_deployment\n"
-
exit
1
rules
:
-
if
:
'
$BUILD_DISABLED'
when
:
never
-
if
:
'
$AUTO_DEVOPS_PLATFORM_TARGET
==
"EC2"'
lib/gitlab/template/gitlab_ci_yml_template.rb
View file @
ada43116
...
...
@@ -7,6 +7,7 @@ module Gitlab
TEMPLATES_WITH_LATEST_VERSION
=
{
'Jobs/Browser-Performance-Testing'
=>
true
,
'Jobs/Build'
=>
true
,
'Security/API-Fuzzing'
=>
true
,
'Security/DAST'
=>
true
,
'Terraform'
=>
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment