Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
intelliform-adapter
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
Container 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
eingang
intelliform-adapter
Commits
4f5c6070
Commit
4f5c6070
authored
4 months ago
by
Lukas Malte Monnerjahn
Browse files
Options
Downloads
Patches
Plain Diff
add gitlab pipeline
parent
ef5038c3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yaml
+71
-0
71 additions, 0 deletions
.gitlab-ci.yaml
with
71 additions
and
0 deletions
.gitlab-ci.yaml
0 → 100644
+
71
−
0
View file @
4f5c6070
image
:
maven:3.9.9-eclipse-temurin-21-alpine
variables
:
MAVEN_DEPLOY_CLI_OPTS
:
"
--no-transfer-progress
-DskipTests"
MAVEN_CLI_OPTS
:
>-
-s .m2/ci_settings.xml --batch-mode
-Dmaven.plugin.validation=brief
DOCKER_HOST
:
tcp://docker:2375
DOCKER_TLS_CERTDIR
:
"
"
DOCKER_DRIVER
:
overlay2
services
:
-
docker:dind
cache
:
paths
:
-
.m2/repository/
-
target/
stages
:
-
build
-
test
-
publish
build
:
stage
:
build
script
:
-
mvn clean compile $MAVEN_CLI_OPTS
artifacts
:
paths
:
-
target/*.jar
test
:
stage
:
test
script
:
-
mvn test $MAVEN_CLI_OPTS
verify
:
stage
:
test
script
:
-
mvn verify $MAVEN_CLI_OPTS
push-snapshot-image-gitlab
:
stage
:
publish
script
:
-
mvn deploy -Pgitlab-deploy $MAVEN_DEPLOY_CLI_OPTS $MAVEN_CLI_OPTS
only
:
-
main
push-snapshot-image-nexus
:
stage
:
publish
script
:
-
mvn deploy -Pnexus-deploy $MAVEN_DEPLOY_CLI_OPTS $MAVEN_CLI_OPTS
only
:
-
main
push-release-image-gitlab
:
stage
:
publish
script
:
-
mvn versions:set -DnewVersion=${CI_COMMIT_TAG}
-
mvn deploy -Pgitlab-deploy $MAVEN_DEPLOY_CLI_OPTS $MAVEN_CLI_OPTS
rules
:
-
if
:
$CI_COMMIT_TAG
push-release-image-nexus
:
stage
:
publish
script
:
-
mvn versions:set -DnewVersion=${CI_COMMIT_TAG}
-
mvn mvn deploy -Pnexus-deploy $MAVEN_DEPLOY_CLI_OPTS $MAVEN_CLI_OPTS
rules
:
-
if
:
$CI_COMMIT_TAG
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