Commit 7f31ec2f authored by Kostis Trantzas's avatar Kostis Trantzas
Browse files

Merge branch...

Merge branch '1-create-a-pipeline-to-build-and-publish-the-mvn-package-in-gitlab-registry' into 'develop'

Resolve "Create a pipeline to build and publish the mvn package in gitlab registry"

See merge request !2
parents 14e93790 55a9fb66
Loading
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+8 −0
Original line number Diff line number Diff line
stages:
  - deploy

deploy:
  stage: deploy
  image: maven:3.9.5-ibm-semeru-17-focal
  script:
    - mvn deploy -s ci_settings.xml -DskipTests

ci_settings.xml

0 → 100644
+16 −0
Original line number Diff line number Diff line
<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>
+15 −2
Original line number Diff line number Diff line
@@ -41,8 +41,11 @@
	</pluginRepositories>


    
	<repositories>
		<repository>
			<id>gitlab-maven</id>
			<url>${CI_API_V4_URL}/groups/260/-/packages/maven</url>
		</repository>
		<repository>
			<id>opendaylight-release</id>
			<name>opendaylight-release</name>
@@ -54,6 +57,16 @@
			<url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</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>
	   

    <properties>