マスター git ブランチに maven ビルドの目標 'clean package deploy' を使用する Jenkins ジョブがあります。ただし、nexus リポジトリが再デプロイを許可していないため、バージョンを変更せずに Jenkins ジョブを 2 回実行すると、予想される 400 Bad Request エラーで失敗します。
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy)
on project common-library:
Failed to deploy artifacts: Could not transfer artifact
net.bacon.common:common-library:pom:1.2.13 from/to bacon-releases
(https://maven.bacon.com/nexus/content/repositories/releases):
Failed to transfer file:
https://maven.bacon.com/nexus/content/repositories/releases/net/bacon/common/common-library/1.2.13/common-library-1.2.13.pom.
Return code is: 400, ReasonPhrase:Bad Request.
Jenkinsジョブを失敗させることなくデプロイ目標を実行できる別の戦略を提案できる人はいますか?