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

Misleading error when running customised build and the revision is not found

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 6.6.1
    • Builds
    • None

    Description

      Steps to Reproduce

      1. pick a name that is not a revision number, neither a tag name nor a branch name
      2. run a customised build and use this name in the revision field
      3. run the build

      Expected Results

      The UI will check if that revision can be checked out and will tell the user that revision is not available

      Actual Results

      The build is not run and the UI shows the below misleading error:

      The ERROR will show up in the *<Bamboo_Home>/logs/atlassian-bamboo.log file:

      2018-08-22 17:50:04,009 INFO [http-nio-8085-exec-5] [com.atlassian.bamboo.filter.AccessLogFilter] admin GET http://localhost:8085/bamboo/rest/troubleshooting/1.0/check/admin?_=1534971003837 411884kb
      2018-08-22 17:50:04,027 ERROR [6-DelayedChangeDetectionThread:pool-12-thread-10] [com.atlassian.bamboo.chains.ChainExecutionManagerImpl] Plan 'OT-BOL' could not be started. Exception: com.atlassian.bamboo.plugins.git.GitCommandException: command [/usr/bin/git branch -a --contains name] failed with code 129. Working directory was [/Users/dsantos/atlassian/bamboo/6.6.1/home/xml-data/build-dir/_git-repositories-cache/655a2358c76d6e2fd84ee7291374e2b14affb852]., stderr:
      error: malformed object name name
      usage: git branch [<options>] [-r | -a] [--merged | --no-merged]
      

      Workaround

      On git repositories you can use any of these values in the revision field:

      • Revision number
      • Branch name
      • Tag name

      Make sure the value exists in one of the three categories above before running the build.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dsantos Daniel Santos
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: