[release] unexpected return code for "Deploy to Maven Central" step

Fechada
#3,333 2 comentários 4 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Precisa de esclarecimento
Status de atividade
Estagnada
Stack de tecnologia
java
Domínio
ci-cd, release

Direção de pesquisa

Comece pela etapa de release “Deploy to Maven Central (Buildkite)” e pelas execuções de workflow vinculadas; em seguida, compare o erro do Buildkite com o fato de os artefatos terem sido publicados. Revise como o nexus-staging-maven-plugin relata essa resposta e verifique ambos os resultados: uma publicação bem-sucedida deve produzir um workflow bem-sucedido, enquanto um artefato não publicado deve falhar sem um status inconsistente.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

agent-java Team:Automation

On buildkite, we get the following error message: Error: The command exited with status 1, however the artifacts are properly published by the release process in the Deploy to Maven Central (Buildkite) step.

There was at least two occurences of this in the recent releases:

In the buildkite logs, we can see the following error:

[ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy (injected-nexus-deploy) on project apm-opentracing: Remote staging failed: A message body reader for Java class com.sonatype.nexus.staging.api.dto.StagingProfileRepositoryDTO, and Java type class com.sonatype.nexus.staging.api.dto.StagingProfileRepositoryDTO, and MIME media type text/html was not found

We are already using the latest version of this plugin 1.6.13, which is about a year old as I am writing this.
https://search.maven.org/artifact/org.sonatype.plugins/nexus-staging-maven-plugin

When this error happens, we can have two possible results (both cases already happened)

  • the release artifact will still be published despite the error, the release workflow will successfully execute.
  • the release artifact won't be published, the release workflow will fail as the artifact is not published and timeout is reached.
Linguagem predominante
Java
Estrelas
592
Forks
340
Merge médio
1d 19h
PRs com merge (30d)
17

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de elastic/apm-agent-java

Todas as issues de elastic/apm-agent-java

Issues semelhantes

Mais issues de Java

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.