Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
contacts_manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
java_oop
contacts_manager
Commits
07a33b5e
Commit
07a33b5e
authored
2 years ago
by
zabiulla.ahmadi
Browse files
Options
Downloads
Patches
Plain Diff
add ci/cd
parent
a31033da
No related branches found
No related tags found
No related merge requests found
Pipeline
#22514
passed
2 years ago
Stage: build
Stage: quality
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+39
-0
39 additions, 0 deletions
.gitlab-ci.yml
with
39 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
39
−
0
View file @
07a33b5e
stages
:
-
build
-
quality
-
deploy
default
:
image
:
maven:3.8.6-openjdk-18
cache
:
paths
:
-
.cache/repository
# - dependances/
variables
:
MAVEN_OPTS
:
"
-Dmaven.repo.local=$CI_PROJECT_DIR/.cache/repository"
build-backend
:
stage
:
build
script
:
-
mvn clean compile
artifacts
:
paths
:
-
target/
expire_in
:
1 hour
test-backend
:
stage
:
quality
script
:
-
mvn test
# dependencies:
# - build-backend
package-backend
:
stage
:
deploy
script
:
-
mvn package
artifacts
:
paths
:
-
target/starter-1.0.0-SNAPSHOT-fat.jar
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