Skip to content
Snippets Groups Projects
Commit ebfbd430 authored by dgiannopoulos's avatar dgiannopoulos
Browse files

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
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:
stage: deploy
image: maven:3.9.0-amazoncorretto-17
script:
- mvn $MAVEN_CLI_OPTS deploy
- 'mvn deploy -s ci_settings.xml'
<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>
......@@ -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>
......
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