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.

How to achieve staging in dependency build (for nightly build)? #3864

HealingQuickly ·

Hi Robin

I'd appreciate it if you could help me out with this.

I'm trying to do dependency builds, and the situation is this:
product-A needs artifacts from component-A, and product-A needs to use/verify every build result of component-A.
As far as I know, when I specify component-A as a Quickbuild repository, and when I specify the build version of component-A, I have no way to specify multiple build versions, so that I can choose nightly build for product-A.

Image.jpg

If I do this (or use comma separated value), product-A can't retrieve the build version, because it sees the build version as one string
Capture.PNG

And if I choose other ways to specify build version (latest, latest successful, etc...), and specify the build schedule of product-A to be nightly build, I would guess product-A will only retrieve the latest, not all of the staged builds of component-A.


Could you give me some hints of how to do this?

Thank you very much!

  • replies 3
  • views 1041
  • stars 0
robinshen ADMIN ·

If you want to verify all builds of a certain configuration, you should not use the dependency mechanism. Instead, I'd suggest to write a groovy script running in productA to iterate over all builds and do something as necessary.

HealingQuickly ·

Hi Robin

Could you point me to the doc that shows the API/script to get artifacts from other configuration? Or how to do this?
I need to use all the builds from component-A, so I assume it has to be identified by build ID?

Thank you!

robinshen ADMIN ·

Once you get a build object, you may call build.artifactsDir to get artifacts directory of that build. From that point, you may go further to access the artifacts via Java file API. However it only works if the script runs on QB server.