Jobs are correct - they upload prepared artifact to staging. However after the job is done it is required to perform 2 more steps:
1. check what is uploaded using Nexus staging plugin:
export STAGING_CONFIG=${1}
export STAGING_PLUGIN='org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7'
mvn -s ${STAGING_CONFIG} ${STAGING_PARAMS} ${STAGING_PLUGIN}:rc-list
after you will receive list of open (and closed) stagings and you can identify yours by <groupId>-<number>.
The groupId is used without dots. Like jakartajaxws-1003
and the 2nd step is to close that open staging:
2. Closing script (using the same maven staging plugin):
export STAGING_DESC=${1}
export STAGING_REPO_ID=${2}
export STAGING_CONFIG=${3}
export STAGING_PLUGIN='org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7'
mvn -s ${STAGING_CONFIG} ${STAGING_PARAMS} ${STAGING_PLUGIN}:rc-close -DstagingRepositoryId="${STAGING_REPO_ID}" -DstagingDescription="${STAGING_DESC}"
STAGING_REPO_ID is required identifier from previous step,
STAGING_CONFIG is config file for maven (like settings.xml)
However if you do not find required staging in nexus using the 1st step you have to re-run release job (with OVERWRITE parameter checked) and perform those 2 steps after release job is done. Those 2 steps can be put in jenkins job and triggered after the release build is successful.
Shall you have any questions please contact me :)
Regards,
Maxi
---------- Původní e-mail ----------
Od: Dmitry Kornilov <
dmitry.kornilov@xxxxxxxxxx>
Komu: Jim Krueger <
jckofbyron@xxxxxxxxx>
Datum: 6. 11. 2018 23:25:15
Předmět: Re: Successful release jobs not going to sonatype staging
Jim, something is definitely not right. Adding Maxim. Maxim, can you please take a look on JAX-RPC API and JACC jobs and tell us what’s wrong with them.
— Dmitry
Hi Dmitry,
The Jenkins release jobs I've set up for the Jakartaee stable projects using the provided example are running successfully, however it does not appear that the sonatype staging repository is being updated with these projects.
This may or may not be related, but when I look in the Console output for these jobs I see lines like this:
However, if I click any of these links I see this:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<nexus-error><errors><error><id>*</id><msg>Staging of Repository within profile ID=‘7edbe315063867’ is not yet started!</msg></error></errors></nexus-error>
Are there some instructions I am missing? We are seeing the same results for the JCA project as well.
Thanks