Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

transferring files among different configurations #3906

HealingQuickly ·

Hello Robin

I wonder if it's possible to transfer files to another configuration during a build?

More specifically, I'm trying to use a lot of "trigger other builds" in a "master configuration". The sub configurations will do the actual work and generate artifacts. How can I transfer the artifacts back to the master configuration?

I've tried using fetch/send files. Apparently it didn't work.

If there is a way, could you point me to the necessary java APIs?

Thank you very much

  • solved #3
  • replies 6
  • views 1036
  • stars 0
HealingQuickly ·

Hi Robin

I found an old post where I asked you the similar question. I can use build.artifactsDir to access the actual files.

Could you point me to the groovy/java doc that publishes artifacts? So that I can publish the files in the "master" configuration

Thank you

robinshen ADMIN ·
HealingQuickly ·

Hi Robin

This API did work. Thanks!

But I'm also trying to publish other kinds of artifacts, such as Junit report

it's also retrieved from downstream configurations
The downstream configuration publishes it as "artifact", so I can retrieve it in the same way

But the junit report "*.xml" was only published to the artifact dir, not on the left side panel as JUnit report section.

Could you tell me the api for publishing Junit report on the left side panel?
Basically the other kinds of publishing steps/APIs, I might need a few other kinds as well. Could you tell me where?

Thank you very much!

steveluo2 ADMIN ·
HealingQuickly ·

Hi Steve

Thanks for your reply

The problem is I can't use a step to publish the reports, because I'm accessing the reports in downstream configuration artifact directory (it seems it's accessing remotely?). So the upstream configuration couldn't have a step that can find the files (in its own workingDir) to publish.

I guess the question is how I can transfer files from another configuration to the one that's trying to publish?

Thank you

HealingQuickly ·

I tried using generic Groovy/Java copy file functions, and it works.