Checking the build result from command line
In 2.0.0.2, is there a way to check the status of a build from the command line?
|
One answer
The closest thing we have to a command line tool for Build is the Ant tasks.
They work in pretty low level terms, though, since they're intended for use by automated build scripts, rather than humans. For example, builds are identified by their item id (a UUID). You can obtain this from the last segment of the result of Copy URL on a build result in the IDE. I defined the following Ant script, called buildstatus.xml.
I can then do: ant -f buildstatus.xml -lib {path to buildtoolkit directory} -q -DbuildResultUUID=_Hkm1wYStEd--Je62z2AkVQ which outputs, e.g. build state: COMPLETED, status: OK Here, the build result UUID is _Hkm1wYStEd--Je62z2AkVQ, obtained manually from the build result's URL. I had previously set up the password file using: jbe -createPasswordFile ~/Work/pass Does this help for your scenario? If not, can you provide more details about what you're trying to do? |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.