Retrieving artifacts created by a remote trigger

We have a problem with some software (Redgate SQL Packager) that we rely on for our build process, in particular that we have a license to run on the same machine (our old machine running FinalBuilder), and the company does not sell its more to allow us to also run it on our new build machine (running Jenkins).

To get around this, we installed a second Jenkins server on the old computer, which will run one SQL Packager job on the old build machine and publish the output (one .exe) as an artifact. The goal is to initiate this from the main assembly using the Parameterized Remote Trigger plugin, and then copy the artifact back to the Jenkins main server for publication.

However, I encounter problems that are harder to get this artifact than I expected. I was hoping to use the Copy Artifact plugin, but it only seems to want to use local build projects. I also could not see anything obvious in the list of plugins.

  • Am I really wrong about that? Is there an easier way to resolve this issue (launching one build step that MUST be run on a specific machine).
  • Am I using artifacts correctly?
  • I am concerned that there is potential for race conditions. I would like for me to know how to build a fix for my remote build, so I can be sure that I get the correct artifact, however the plugin seems to limit me to the “last”, which is certainly dangerous for parallel assemblies?
  • And if everything else is in order - how to get this file from my remote build machine?
+4
source share
1 answer

Jenkins Jenkins, . Distributed Builds . SQL Packager Jenkins, . , , .

" ", Copy Artifact : , " ", . , , Promoted Builds.

+2

Source: https://habr.com/ru/post/1607427/


All Articles