Jenkins issues while taking build using c8y Dependency repo

Hi Team,

We have developed Java microservice application using Cumulocity dependency.

when we taking build via IDE it working in local system. but we are getting issues when we trying to configure it in our Nokia Jenkins repository.

So this plugin is making docker file dynamic… and have BASE image i.e FROM openjdk:7-alpine but in my environment i don’t have access to docker hub url and want to use my private docker registery… What is option/configuration available for same.

Error Logs:

/root/.m2/repository/com/mts/mts-mircroservice/9.8.105/mts-mircroservice-9.8.105.jar
[INFO] Installing /home/jenkins/workspace/NSWPS/DECCM/DECCMMTSIMPACT17/MTS_Backend_Adapter/MTS_With_Security/mts-mircroservice/pom.xml to /root/.m2/repository/com/mts/mts-mircroservice/9.8.105/mts-mircroservice-9.8.105.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.308 s
[INFO] Finished at: 2019-11-26T06:12:38+00:00
[INFO] Final Memory: 47M/1243M
[INFO] ------------------------------------------------------------------------
[Pipeline] }
[Pipeline] // container
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Publish candidate)
[Pipeline] withCredentials
Masking supported pattern matches of $ARTIFACTORY_LOGIN or $ARTIFACTORY_LOGIN_USR or $ARTIFACTORY_LOGIN_PSW
[Pipeline] {
[Pipeline] container
[Pipeline] {
[Pipeline] sh

  • DOCKER_HOST=tcp://127.0.0.1:2375
  • /opt/apache-maven-3.3.9/bin/mvn -B -f MTS_With_Security/mts-mircroservice/pom.xml clean deploy -Dartifactory.url=https://repo.lab.pl.alcatel-lucent.com -DnewVersion=105 -Dartifactory.username=**** -Dartifactory.apikey=**** -Dprojectname=DECCMMTSIMPACT17
    [INFO] Scanning for projects…
    [INFO] Downloading: https://repo.lab.pl.alcatel-lucent.com/jcenter/com/nsn/cumulocity/clients-java/microservice-dependencies/9.8.0/microservice-dependencies-9.8.0.pom
    [ERROR] [ERROR] Some problems were encountered while processing the POMs:
    [ERROR] Non-resolvable import POM: Could not find artifact com.nsn.cumulocity.clients-java:microservice-dependencies:pom:9.8.0 in aado-maven-central (https://repo.lab.pl.alcatel-lucent.com/jcenter/) @ line 42, column 22
    @
    [ERROR] The build could not read 1 project -> [Help 1]
    [ERROR]
    [ERROR] The project com.mts:mts-mircroservice:9.8.105 (/home/jenkins/workspace/NSWPS/DECCM/DECCMMTSIMPACT17/MTS_Backend_Adapter/MTS_With_Security/mts-mircroservice/pom.xml) has 1 error
    [ERROR] Non-resolvable import POM: Could not find artifact com.nsn.cumulocity.clients-java:microservice-dependencies:pom:9.8.0 in aado-maven-central (https://repo.lab.pl.alcatel-lucent.com/jcenter/) @ line 42, column 22 -> [Help 2]

Thanks
pom.xml (5.96 KB)

Hi,

on which tenant are you trying this?

best regards
Michael