History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-2652
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Robin Shen
Reporter: Erki Männiste
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Triggering over REST does not work with wildcard branch

Created: 01/Mar/16 01:24 PM   Updated: 02/Mar/16 01:25 AM
Component/s: None
Affects Version/s: 6.1.0
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Text File example.txt (4 kb)

Environment: Linux (3.2.0-4-amd64)


 Description  « Hide
If a configuration is referencing wildcard branch, it is not possible to trigger the configuration over Rest API.

 All   Comments   Work Log   Change History      Sort Order:
Erki Männiste [01/Mar/16 01:25 PM]
File containing configuration with repo and build request

Erki Männiste [01/Mar/16 01:27 PM]
I have attached config and buildrequest XMLs.
The build gets triggered over rest, but config goes to error saying Error executing check condition job.
Build condition is nothing special, the regular Build If Changed

Erki Männiste [01/Mar/16 01:28 PM]
I can't find anything related from server logs.

Erki Männiste [01/Mar/16 01:29 PM]
Manual trigger works. It also works using the Trigger rest resource, but I can't give shortBranch with it and it builds all the branches matching the definition, which is not intended.

Erki Männiste [01/Mar/16 01:53 PM]
Agent write 3 lines:

2016-03-01 13:51:17,260 [pool-1-thread-78] INFO com.pmease.quickbuild.CheckConditionJob - Taking repository snapshots...
2016-03-01 13:51:17,281 [pool-1-thread-78] INFO com.pmease.quickbuild.repositorysupport.Repository - Taking snapshot of repository 'test'...
2016-03-01 13:51:17,281 [pool-1-thread-78] INFO com.pmease.quickbuild.repositorysupport.Repository - Determining head revision for repository: test

Robin Shen [02/Mar/16 01:25 AM]
The short branch has to be specified with below format:

<com.pmease.quickbuild.BuildRequest>
<configurationId>1</configurationId>
<respectBuildCondition>true</respectBuildCondition>
<shortBranch>
<name>refs/heads/dev</name>
<revision>400ac1ce47bcf7cee7bb21ef45538566b06f859a</revision>
</shortBranch>
</com.pmease.quickbuild.BuildRequest>