【发布时间】:2016-06-25 11:29:14
【问题描述】:
我们使用 Jenkins + Gradle 脚本构建。 要将工件上传到 nexus,我们使用:
uploadArchives {
repositories {
mavenDeployer {
def auth = { authentication(userName: nexusUsername, password: nexusPassword) }
repository(url: rpmReleasesRepoUrl, auth)
pom.groupId = project.group
pom.version = project.version
pom.artifactId = project.product
}
}
}
我们需要一份工作,从一个联结中获取工件并将其上传到另一个联结。
您能否建议更好的方法以及是否有任何有用的文章/示例(第一次看到 gradle/maven/nexus)?
【问题讨论】:
标签: maven jenkins gradle nexus