ory / sdk

The place where ORY's SDKs are being auto-generated
Apache License 2.0
139 stars 86 forks source link

[java] Release pipeline does not fail on errors #248

Open jonas-jonas opened 1 year ago

jonas-jonas commented 1 year ago

Preflight checklist

Describe the bug

The maven release step for Kratos v0.11.1 failed with an error, but the pipeline did not fail.

Reproducing the bug

-

Relevant log output

No response

Relevant configuration

No response

Version

v0.11.1

On which operating system are you observing this issue?

None

In which environment are you deploying?

None

Additional Context

    [INFO] --- nexus-staging-maven-plugin:1.6.7:deploy (injected-nexus-deploy) @ kratos-client ---
    [INFO] Performing local staging (local stagingDirectory="/tmp/kratos-client-java.HmoLzj/target/checkout/target/nexus-staging/staging")...
    [INFO]  + Using server credentials "ossrh" from Maven settings.
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  16.564 s
    [INFO] Finished at: 2023-01-14T11:50:17Z
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy (injected-nexus-deploy) on project kratos-client: Execution injected-nexus-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy failed: Nexus connection problem to URL [https://oss.sonatype.org/ ]: 503 - Service Unavailable -> [Help 1]
    [ERROR] 
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR] 
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  19.178 s
[INFO] Finished at: 2023-01-14T11:50:17Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:perform (default-cli) on project kratos-client: Maven execution failed, exit code: '1' -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException