Publish SNAPSHOT for communication between jenkins / maven build

I am trying to publish the result of a jenkins / maven build in a Nexus repository.

Build is SNAPSHOT war, here is the beginning of POM:

<http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.elis</groupIenter code hered>
<artifactId>accueil_ce</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>accueil_ce</name>

I am using maven clean goal setting for the build.

I installed and configured the Nexus Repository Manager Publisher plugin for jenkins so that it can publish to my Nexus Repo during the post build phase.

The problem is this:

  • if I configure the repo as a “snapshot” and “allow redeployment” in Nexus, it does not appear in the list of repositories available in Jenkins when setting up the stage after building the “Nexus Repository Manager Publisher” jobs.

  • "" " " Nexus, jenkins:

    java.io.IOException: com.sonatype.nexus.api.exception.RepositoryManagerException: : . 0.0.1-SNAPSHOT !

, SNAPSHOTs nexus jenkins builds ??

+4

Source: https://habr.com/ru/post/1675334/


All Articles