Bug 433318 - Hudson doesn't expand parameters if they are used in the Repository URL field
Summary: Hudson doesn't expand parameters if they are used in the Repository URL field
Status: NEW
Alias: None
Product: Hudson
Classification: Technology
Component: Plugins (show other bugs)
Version: 3.1.2   Edit
Hardware: All All
: P3 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Winston Prakash CLA
QA Contact: Geoff Waymark CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-23 11:35 EDT by Nik Kol CLA
Modified: 2014-04-29 04:17 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nik Kol CLA 2014-04-23 11:35:02 EDT
In order to parametrize a build job I tried to pass a repo url as a parameter (I tried both global and local parameters). In both cases Hudson starts from cloning the repository again instead of updating the old one. The issue occurs because the repo url in hgrc is not equal to the parameter name.

Started by user anonymous
[workspace] $ hg showconfig paths.default
ERROR: Workspace reports paths.default as http://********.com/hg/trunk
which looks different than $REPO
so falling back to fresh clone rather than incremental update
$ hg clone --rev default --noupdate $REPO /***/jobs/***-job/workspace
Comment 1 Winston Prakash CLA 2014-04-23 13:59:22 EDT
This seems to me mercurial plugin misbehaving. Can you do a quick test. Create a "Execute Shell" builder and in the command box enter "echo $REPO" and run the job and check the console. See if $REPO is substituted correctly.
Comment 2 Nik Kol CLA 2014-04-25 05:18:10 EDT
It works.

Could you please tell me what should I do to get the issue fixed?