Nexus NPM 存储库
Nexus NPM Repository
是否可以在 NPM 类型的 Nexus 存储库中上传“.zip”文件?
nexusArtifactUploader 工件:[[artifactId:'spring-petclinic',分类器:'',文件:'target/9.0.0-rc1.zip',类型:'zip']],credentialsId:'ff154118-e8d1-4c40-a63b-5ce5821c347c',groupId :'Pet_Clinic',nexusUrl:'uat.alm.com/nexus',nexusVersion:'nexus3',协议:'https',存储库:'NexusTest1_Release',版本:'1.0.0.0'
出现此错误:
看着 : https://jenkins.io/doc/pipeline/steps/nexus-artifact-uploader/ 看起来你可以。我想你只需要添加 'type:'zip'
如果您需要我自己的管道示例,请使用 nexusArtifactuploader(用于 tgz 存档):
withCredentials([usernamePassword(credentialsId: 'nexusId', usernameVariable: 'nexusUser', passwordVariable: 'nexusPwd')]) {
nexusArtifactUploader(
nexusVersion: 'nexus3',
protocol: 'https',
nexusUrl: 'myNexusUrl',
groupId: 'mygroupId',
version: tagG,
repository: 'myRepo',
credentialsId: 'nexusId',
artifacts: [
[artifactId: 'myArchive',
type:'tgz',
classifier: '',
file: "myArchive-${tagG}.tgz"]
]
)
}
是否可以在 NPM 类型的 Nexus 存储库中上传“.zip”文件?
nexusArtifactUploader 工件:[[artifactId:'spring-petclinic',分类器:'',文件:'target/9.0.0-rc1.zip',类型:'zip']],credentialsId:'ff154118-e8d1-4c40-a63b-5ce5821c347c',groupId :'Pet_Clinic',nexusUrl:'uat.alm.com/nexus',nexusVersion:'nexus3',协议:'https',存储库:'NexusTest1_Release',版本:'1.0.0.0'
出现此错误:
看着 : https://jenkins.io/doc/pipeline/steps/nexus-artifact-uploader/ 看起来你可以。我想你只需要添加 'type:'zip'
如果您需要我自己的管道示例,请使用 nexusArtifactuploader(用于 tgz 存档):
withCredentials([usernamePassword(credentialsId: 'nexusId', usernameVariable: 'nexusUser', passwordVariable: 'nexusPwd')]) {
nexusArtifactUploader(
nexusVersion: 'nexus3',
protocol: 'https',
nexusUrl: 'myNexusUrl',
groupId: 'mygroupId',
version: tagG,
repository: 'myRepo',
credentialsId: 'nexusId',
artifacts: [
[artifactId: 'myArchive',
type:'tgz',
classifier: '',
file: "myArchive-${tagG}.tgz"]
]
)
}