简体   繁体   中英

Build promotion from 1 repo to other in artifactory if the build is not maven/gradle/ant..it is just a tar file

I want to promote a build that is a tar file from one repo to another in Artifactory.

I am pushing a build to Artifactory via a POST call from a Jenkins job and the directory structure in Artifactory is like this: repository_name/build/build_name .

When I am creating another Jenkins job to promote a build from 1 repo to other then it is asking build name and build number and I don't know from where I have to get the build name and build number.

Is there any way to get the build name and number for build promotion if the build is not maven or Gradle or Ant. It is just a tar file.? or Is there any way to pass build name and build number while pushing a build to Artifactory?

In this case, I would recommend making the 2nd job as a downstream job. Pass build name and number form first job to the second job. You can use JFrog CLI in the second Jenkins job to promote build's artifacts from one repo to other repo. https://www.jfrog.com/confluence/display/CLI/CLI+for+JFrog+Artifactory#CLIforJFrogArtifactory-BuildIntegration-PromotingaBuild

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM