Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
org.etsi.osl.model
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
OSL
code
org.etsi.osl.model
Commits
ebfbd430
Commit
ebfbd430
authored
1 year ago
by
dgiannopoulos
Browse files
Options
Downloads
Patches
Plain Diff
added maven job based on gitlab docs
parent
6e194f51
No related branches found
No related tags found
No related merge requests found
Pipeline
#3497
failed
1 year ago
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+2
-15
2 additions, 15 deletions
.gitlab-ci.yml
ci_settings.xml
+16
-0
16 additions, 0 deletions
ci_settings.xml
pom.xml
+11
-1
11 additions, 1 deletion
pom.xml
with
29 additions
and
16 deletions
.gitlab-ci.yml
+
2
−
15
View file @
ebfbd430
image
:
maven:3.8.4
stages
:
-
build
-
deploy
variables
:
MAVEN_CLI_OPTS
:
"
"
# "-B -e -V"
build
:
stage
:
build
script
:
-
mvn $MAVEN_CLI_OPTS clean install
artifacts
:
paths
:
-
target/*.jar
deploy
:
st
age
:
deploy
im
age
:
maven:3.9.0-amazoncorretto-17
script
:
-
mvn
$MAVEN_CLI_OPTS deploy
-
'
mvn
deploy
-s
ci_settings.xml'
This diff is collapsed.
Click to expand it.
ci_settings.xml
0 → 100644
+
16
−
0
View file @
ebfbd430
<settings
xmlns=
"http://maven.apache.org/SETTINGS/1.1.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd"
>
<servers>
<server>
<id>
gitlab-maven
</id>
<configuration>
<httpHeaders>
<property>
<name>
Job-Token
</name>
<value>
${CI_JOB_TOKEN}
</value>
</property>
</httpHeaders>
</configuration>
</server>
</servers>
</settings>
This diff is collapsed.
Click to expand it.
pom.xml
+
11
−
1
View file @
ebfbd430
...
...
@@ -28,11 +28,21 @@
<camel.version>
4.0.0-RC2
</camel.version>
</properties>
<repositories>
<repository>
<id>
gitlab-maven
</id>
<url>
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/maven
</url>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>
gitlab-maven
</id>
<url>
https://labs.etsi.org/api/v4/projects/278
/packages/maven
</url>
<url>
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}
/packages/maven
</url>
</repository>
<snapshotRepository>
<id>
gitlab-maven
</id>
<url>
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/maven
</url>
</snapshotRepository>
</distributionManagement>
...
...
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