<< Back to previous view

[QB-2652] Triggering over REST does not work with wildcard branch
Created: 01/Mar/16  Updated: 02/Mar/16

Status: Closed
Project: QuickBuild
Component/s: None
Affects Version/s: 6.1.0
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Erki Männiste Assigned To: Robin Shen
Resolution: Won't Fix Votes: 1
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown
Environment: Linux (3.2.0-4-amd64)

File Attachments: Text File example.txt    

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

 Comments   
Comment by Erki Männiste [ 01/Mar/16 01:25 PM ]
File containing configuration with repo and build request
Comment by 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
Comment by Erki Männiste [ 01/Mar/16 01:28 PM ]
I can't find anything related from server logs.
Comment by 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.
Comment by 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
Comment by 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>
Generated at Thu May 16 10:42:16 UTC 2024 using JIRA 189.