So I got few separated jobs in Jenkins. The first one gets the project from a Git repository, builds it and produces artifacts. And another one has to copy certificates from the first job and publish them to Artifactory (tried to make it using the Artifactory plugin). But the thing is that the Artifactory plugin's available only in the Build job, there's nothing like "Generic-Artifactory integration" in second job's configuration. Does anyone know what are the requirements for making the plugin work in the Publish job?

有帮助吗?

解决方案

You can write a small shell script leveraging Artifactory REST API and execute it in your second, non-build job.

其他提示

I have done a similar thing with maven and a zip file. I have deployed a zip with a build step in maven calling a deploy:deploy-file and setting my Artifactory repository in settings.xml and deploying directly on my artifactory repository.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top