Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-9908

hg repository fails to detect changes while using global variables - http://path/to/repository#${bamboo.tagToBuild}

    XMLWordPrintable

Details

    Description

      https://answers.atlassian.com/questions/13950/mercurial-repository-url-build-variables:

      Hi,

      We're using Bamboo 3.2 and are trying to build a specific Mercurial tag or changeset for our release builds. The Repository URL on the source repository configuration screen supports the #revision syntax, which is great. What I would like to do is parametize this using the bamboo build variables.

      Something like the following:

      http://path/to/repository#${bamboo.tagToBuild}

      However I get a malformed url error message when I attempt to do this. To me, this seems the simplest way to achieve builds based on a particular tag, but I'd like to know if we're trying to do this the wrong way.

      Can anyone please advise how they have overcome with this particular problem? Or is this something unique to us, and possibly indicating that we should be following a different process?

      Cheers,

      Adam

      the root of the problem is probably here - no cache directory variable substitution:
      https://bitbucket.org/atlassian/bamboo/src/b1b1573dbd0c/components/bamboo-plugins/bamboo-plugin-mercurial/src/main/java/com/atlassian/bamboo/plugins/hg/HgRepository.java#cl-194

      Attachments

        Activity

          People

            kbrazulewicz Krystian Brazulewicz
            pstefaniak PiotrA
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: