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}

      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

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

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 1434535 ] New: JAC Bug Workflow v3 [ 3384156 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: Bamboo Workflow 2016 v1 [ 1408515 ] New: Bamboo Workflow 2016 v1 - Restricted [ 1434535 ]
            Marek Went (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2014 v2 [ 609034 ] New: Bamboo Workflow 2016 v1 [ 1408515 ]
            James Dumay made changes -
            Workflow Original: Bamboo Workflow 2014 [ 599832 ] New: Bamboo Workflow 2014 v2 [ 609034 ]
            James Dumay made changes -
            Workflow Original: Bamboo Workflow 2010 [ 346902 ] New: Bamboo Workflow 2014 [ 599832 ]
            Krystian Brazulewicz made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: To be reviewed [ 10026 ] New: Resolved [ 5 ]
            Krystian Brazulewicz made changes -
            Status Original: In Progress [ 3 ] New: To be reviewed [ 10026 ]
            Krystian Brazulewicz made changes -
            Assignee New: Krystian Brazulewicz [ kbrazulewicz ]
            Krystian Brazulewicz made changes -
            Status Original: Open [ 1 ] New: In Progress [ 3 ]
            MarkC made changes -
            Fix Version/s New: 3.3.2 [ 21131 ]
            Fix Version/s Original: 3.3.1 [ 20795 ]

              kbrazulewicz Krystian Brazulewicz
              pstefaniak PiotrA
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: