How to move artifacts between two nexus repositories (jenkins)?

Viewed 8686

We use Jenkins + Gradle Script build. To uploading artifacts to nexus we use:

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
            }
        }
    }

We need a job, that takes artifacts from one nexus and uploads it to another nexus.

Can you advice what will be the better way to do this and if there is any useful articles/examples (seeing gradle/maven/nexus for first time)?

1 Answers
Related