Opened 5 years ago

Closed 5 years ago

#2495 closed support-request (fixed)

'Force build' form 'repository' field usage

Reported by: jachen Owned by:
Priority: major Milestone: ongoing
Version: 0.8.7p1 Keywords: projrepo
Cc:

Description

I was not able to use the 'Repository' field on the 'force build' form to build a repo other than the default one I coded in the master.cfg. Is the idea that I need to get the Repository property from the build and then dynamically pass it into the Git 'repourl'?

This field seems to work differently from other fields that just auto work:

'Branch' seems to work when you enter something other than 'master'. Same with 'revision' when you enter a commit.

Change History (8)

comment:1 Changed 5 years ago by dustin

  • Keywords projrepo added
  • Milestone changed from undecided to ongoing
  • Type changed from undecided to support-request

Yes, you need to substitute it with interpolation, e.g., repourl=Interpolate('%(src::repository)s').

comment:2 Changed 5 years ago by jachen

Worked out really well. Maybe this feature should be more documented? At least for us, with the github and the forks, it's equivalent to a try scheduler since now the user can just build their own fork on our builder. Thanks!

comment:3 Changed 5 years ago by dustin

There's some documentation of it, but you're probably in a good position to add more, perhaps at the places you did look in the documentation.

comment:4 Changed 5 years ago by jachen

I didn't even know we can do that....

comment:5 Changed 5 years ago by jachen

I have another question on this. Now it seems I need to supply a 'repository' url in 'force build' form for this Interpolate('%(src::repository)s' to work. How do I supply a default repo url if a 'repository' url is not set during 'force build'?

comment:6 Changed 5 years ago by dustin

Interpolate has some ways to specify default values for various circumstances. Check the docs for details.

comment:7 Changed 5 years ago by jachen

Got it working by doing: Interpolate('%(src::repository:~' + default_url +')s') There are probably better looking ways out there... You can close the ticket. Thank you.

comment:8 Changed 5 years ago by dustin

  • Resolution set to fixed
  • Status changed from new to closed

That works, too.

Note: See TracTickets for help on using tickets.