Skip to content
Snippets Groups Projects
Commit 393f57fc authored by Dimitrios Giannopoulos's avatar Dimitrios Giannopoulos
Browse files

added mvn artifact ci automation

parent 7fc16e78
No related branches found
No related tags found
3 merge requests!7Merging develop (merged from 2024Q2_RC) into main, creating 2024Q2 Release,!6Merging 2024Q2_RC into main, creating 2024Q2 Release,!2Resolve "Create a pipeline to build and publish the mvn package in gitlab registry"
Pipeline #3558 failed
stages:
- deploy
deploy:
stage: deploy
image: maven:3.9.5-ibm-semeru-17-focal
script:
- mvn deploy -s ci_settings.xml -DskipTests
<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>
...@@ -34,6 +34,23 @@ ...@@ -34,6 +34,23 @@
<spring.boot-version>3.1.2</spring.boot-version> <spring.boot-version>3.1.2</spring.boot-version>
</properties> </properties>
<repositories>
<repository>
<id>gitlab-maven</id>
<url>https://labs.etsi.org/rep/api/v4/groups/260/-/packages/maven</url>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>gitlab-maven</id>
<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>
<pluginRepositories> <pluginRepositories>
<pluginRepository> <pluginRepository>
<id>opendaylight-release</id> <id>opendaylight-release</id>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment