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
926b2d12
Commit
926b2d12
authored
Aug 12, 2019
by
Jason Lenny
Committed by
Achilleas Pipinellis
Aug 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge deploy keys example to deploy keys API docs
No reason to keep them separate.
parent
95075fee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
doc/ci/jenkins/index.md
doc/ci/jenkins/index.md
+28
-0
No files found.
doc/ci/jenkins/index.md
View file @
926b2d12
...
@@ -30,6 +30,34 @@ There are some high level differences between the products worth mentioning:
...
@@ -30,6 +30,34 @@ There are some high level differences between the products worth mentioning:
-
GitLab comes with a
[
container registry
](
../../user/project/container_registry.md
)
, and we recommend using
-
GitLab comes with a
[
container registry
](
../../user/project/container_registry.md
)
, and we recommend using
container images to set up your build environment.
container images to set up your build environment.
## Groovy vs. YAML
Jenkins Pipelines are based on
[
Groovy
](
https://groovy-lang.org/
)
, so the pipeline specification is written as code.
GitLab works a bit differently, we use the more highly structured
[
YAML
](
https://yaml.org/
)
format, which
places scripting elements inside of
`script:`
blocks separate from the pipeline specification itself.
This is a strength of GitLab, in that it helps keep the learning curve much simpler to get up and running
and avoids some of the problem of unconstrained complexity which can make your Jenkinsfiles hard to understand
and manage.
That said, we do of course still value DRY (don't repeat yourself) principles and want to ensure that
behaviors of your jobs can be codified once and applied as needed. You can use the
`extends:`
syntax to
[
templatize your jobs
](
../yaml/README.md#extends
)
, and
`include:`
can be used to
[
bring in entire sets of behaviors
](
../yaml/README.md#include
)
to pipelines in different projects.
```
yaml
.in-docker
:
tags
:
-
docker
image
:
alpine
rspec
:
extends
:
-
.in-docker
script
:
-
rake rspec
```
## Artifact publishing
## Artifact publishing
Artifacts may work a bit differently than you've used them with Jenkins. In GitLab, any job can define
Artifacts may work a bit differently than you've used them with Jenkins. In GitLab, any job can define
...
...
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