Jenkinsアップロードアーティファクトを使用してNexus MavenのホストリポジトリにNexusプラグインをビルドし、ビルドアーティファクトをアップロードするJenkinsプロジェクトがあります。これはNexus 2.13を使用していたときにうまくいきましたが、Nexus 3にアップグレードした後、Nexusへのアップロードはもう機能しなくなりました。 Nexus 2.13リポジトリと同じようにNexus 3リポジトリを設定していることを確認しました。私はジェンキンスプロジェクトをビルドするとき、私は応答JenkinsさんがNexus 3と連携していないNexus Pluginにアーティファクトをアップロードしました
GroupId: com.company
ArtifactId: hello-world-util
Version: 1.0.0
File: hello-world-util-1.0.0.jar
Repository:companyDevops
Uploading artifact hello-world-util-1.0.0.jar started....
Reason Phrase: Method Not Allowed
<!DOCTYPE html>
<html>
<head>
<title>405 - Nexus Repository Manager</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!--[if lt IE 9]>
<script>(new Image).src="http://192.168.99.100:18081/favicon.ico?3.0.1-01"</script>
<![endif]-->
<link rel="icon" type="image/png" href="http://192.168.99.100:18081/favicon-32x32.png?3.0.1-01" sizes="32x32">
<link rel="mask-icon" href="http://192.168.99.100:18081/safari-pinned-tab.svg?3.0.1-01" color="#5bbad5">
<link rel="icon" type="image/png" href="http://192.168.99.100:18081/favicon-16x16.png?3.0.1-01" sizes="16x16">
<link rel="shortcut icon" href="http://192.168.99.100:18081/favicon.ico?3.0.1-01">
<meta name="msapplication-TileImage" content="http://192.168.99.100:18081/mstile-144x144.png?3.0.1-01">
<meta name="msapplication-TileColor" content="#00a300">
<link rel="stylesheet" type="text/css" href="http://192.168.99.100:18081/static/css/nexus-content.css?3.0.1-01"/>
</head>
<body>
<div class="nexus-header">
<a href="http://192.168.99.100:18081">
<div class="product-logo">
<img src="http://192.168.99.100:18081/static/images/nexus.png?3.0.1-01"/>
</div>
<div class="product-id">
<div class="product-id__line-1">
<span class="product-name">Nexus Repository Manager</span>
</div>
<div class="product-id__line-2">
<span class="product-spec">OSS 3.0.1-01</span>
</div>
</div>
</a>
</div>
<div class="nexus-body">
<div class="content-header">
<img src="http://192.168.99.100:18081/static/rapture/resources/icons/x32/exclamation.png?3.0.1-01"/>
<span class="title">Error 405</span>
<span class="description">Method Not Allowed</span>
</div>
<div class="content-body">
<div class="content-section">
HTTP method POST is not supported by this URL
</div>
</div>
</div>
</body>
</html>
マイジェンキンスネクサスのアップロードが同様に設定されている(これはネクサス2.13の間で変更されていない、3)
Upload artifact to nexus
Nexus Details
Protocol HTTP
Nexus URL 192.168.99.100:18081
User admin
Password admin123
Credentials com.company
GroupId com.company
ArtifactId hello-world-ui
Version 1.0.0
Packaging jar
Repository companyDevops
File build/libs/hello-world-util-1.0.0.jar
私のネクサス3のMavenリポジトリがあるホスト型を取得します私は -I'veは、ネクサスの管理ユーザーがアーティファクト0123をアップロードする権限を持っていることを検証し、このエラーを取得していますなぜわからない
Name companyDevops
Format maven2
Type hosted
URL http://192.168.99.100:18081/repository/companyDevops/
Online
Maven 2
Version policy Release
Layout policy Strict
Storage
Blog store default
Strict content type validation X
Hosted
Deployment policy Allow redeploy
のように構成されました- 再デプロイが有効になっていることを確認しました
- Jenkinsのアップロードアーティファクトto nexus 'プラグインはNexus 3と互換性がありませんか?
誰でもNexus 3を使用することができますか?助言がありますか?
ありがとうございます!
jenkinsからnexus 3にアーティファクトをアップロードする手順を教えてください。私はnexus 3.5.2を使用しています。プラグインをインストールしましたが、使用方法は明確ではありませんか?どのようなグループIDになるかわからない、何がアーティファクトIDになる、私はネクサスで新しいリポジトリを作成する必要がありますか?私はネクサスに新しいです。私たちはこれで助けてください! –
@AbhiAdrここで助けてくれるものは何ですか? –
@KaliyugAntagonist yeaプラグインが動作します。追加の下でNexusアーティファクトアップローダを選択できます。JOBを設定中にビルドステップ –