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.

Quickbuild repositories can't get the build status of specific remote configuration #4645

Epi-apiao ·

Now I have a repositories which is QuickBuild type, and set remote configuration.
I was trying to get the latest build status of this remote configuration in the step, but in fact I got the build id I triggered.

Just like:
The remote qb site: a.com, remote configuration: root/b, and remote running build id: 155
My qb site: b.com, I create configuration: root/get/c. In this configuration, I set repositories server as a.com and specific configuration as root/b.
I tried to build configuration root/get/c, this build id is 12
In my configuration, I try to use "repositories.get("RepoRemoteQB").getBuild().getId()" to get remote build id, but I got 12 not 155.

Is that right?
And is there any other way I can synchronize to get information about the remote build?
At first I just wanted to keep my local builds in the same state as the remote builds...

  • solved #5
  • replies 4
  • views 33
  • stars 0
robinshen ADMIN ·

To get id of remote build, just use below groovy script:

groovy:
repositories.get("RepoRemoteQB").revision.value[0].buildId
Epi-apiao ·

OK, I'll try it now

Epi-apiao ·

This groovy script just help me to get the build id of remote finished build.
If the remote build is still running, can I get information about it?

robinshen ADMIN ·