java.lang.RuntimeException: com.atlassian.bamboo.plugins.hg.HgCommandException: command [/usr/local/bin/hg, id, -i, --debug, --rev, ${bamboo.jira.version}, --config, ui.ssh=ssh -o StrictHostKeyChecking=no -o BatchMode=yes, file:///Users/akhachatryan/dev/Repositories/MercurialClone] failed. Working directory was `/Users/akhachatryan/Atlassian/BambooHome4.2.1/xml-data/build-dir/_hg-repositories-cache/6f80156028b3e846098db18bf296ceb6d6d498c0'. stderr: hg: parse error at 0: syntax error stdout:

Atlassian JIRA | Armen Khachatryan [Atlassian] | 4 years ago
  1. 0

    I tried this with Bamboo 4.2.1, JIRA 5.0.7, and [Bamboo - JIRA plugin 5.1|https://marketplace.atlassian.com/plugins/com.atlassian.jira.plugin.ext.bamboo/version/460]. {code} java.lang.RuntimeException: com.atlassian.bamboo.plugins.hg.HgCommandException: command [/usr/local/bin/hg, id, -i, --debug, --rev, ${bamboo.jira.version}, --config, ui.ssh=ssh -o StrictHostKeyChecking=no -o BatchMode=yes, file:///Users/akhachatryan/dev/Repositories/MercurialClone] failed. Working directory was `/Users/akhachatryan/Atlassian/BambooHome4.2.1/xml-data/build-dir/_hg-repositories-cache/6f80156028b3e846098db18bf296ceb6d6d498c0'. stderr: hg: parse error at 0: syntax error stdout: at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:119) at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:79) at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:174) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectionChangesWithRetry(DefaultChangeDetectionManager.java:389) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuild(DefaultChangeDetectionManager.java:260) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(DefaultChangeDetectionManager.java:218) ... Caused by: com.atlassian.bamboo.plugins.hg.HgCommandException: command [/usr/local/bin/hg, id, -i, --debug, --rev, ${bamboo.jira.version}, --config, ui.ssh=ssh -o StrictHostKeyChecking=no -o BatchMode=yes, file:///Users/akhachatryan/dev/Repositories/MercurialClone] failed. Working directory was `/Users/akhachatryan/Atlassian/BambooHome4.2.1/xml-data/build-dir/_hg-repositories-cache/6f80156028b3e846098db18bf296ceb6d6d498c0'. stderr: hg: parse error at 0: syntax error stdout: at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.runCommand(HgCommandProcessor.java:460) at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.runCommand(HgCommandProcessor.java:418) at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.extractTipHash(HgCommandProcessor.java:485) at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.getRemoteTipForBranch(HgCommandProcessor.java:339) at com.atlassian.bamboo.plugins.hg.HgRepositoryAccessImpl.getLatestRemoteRevisionHash(HgRepositoryAccessImpl.java:321) at com.atlassian.bamboo.plugins.hg.HgRepositoryAccessImpl.collectChangesSinceLastBuild(HgRepositoryAccessImpl.java:94) at com.atlassian.bamboo.plugins.hg.HgRepository.collectChangesSinceLastBuild(HgRepository.java:371) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager$1.call(DefaultChangeDetectionManager.java:393) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager$1.call(DefaultChangeDetectionManager.java:390) at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:100) ... 38 more Caused by: com.atlassian.utils.process.ProcessException: Non-zero exit code: 255 at com.atlassian.utils.process.PluggableProcessHandler.complete(PluggableProcessHandler.java:83) at com.atlassian.utils.process.ExternalProcess.finish(ExternalProcess.java:376) at com.atlassian.utils.process.ExternalProcess.execute(ExternalProcess.java:419) at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.runCommand(HgCommandProcessor.java:455) ... 47 more {code} Bamboo cannot even substitute that variable in a script task: {code} /var/folders/gl/0lz__sg17fn4z5gcl_lsb66m0000gp/T/PROJ1-PLAN1-JOB1-4-ScriptBuildTask-8957754229755330542.sh: line 3: ${bamboo.jira.version}: bad substitution {code}

    Atlassian JIRA | 4 years ago | Armen Khachatryan [Atlassian]
    java.lang.RuntimeException: com.atlassian.bamboo.plugins.hg.HgCommandException: command [/usr/local/bin/hg, id, -i, --debug, --rev, ${bamboo.jira.version}, --config, ui.ssh=ssh -o StrictHostKeyChecking=no -o BatchMode=yes, file:///Users/akhachatryan/dev/Repositories/MercurialClone] failed. Working directory was `/Users/akhachatryan/Atlassian/BambooHome4.2.1/xml-data/build-dir/_hg-repositories-cache/6f80156028b3e846098db18bf296ceb6d6d498c0'. stderr: hg: parse error at 0: syntax error stdout:
  2. 0

    I tried this with Bamboo 4.2.1, JIRA 5.0.7, and [Bamboo - JIRA plugin 5.1|https://marketplace.atlassian.com/plugins/com.atlassian.jira.plugin.ext.bamboo/version/460]. {code} java.lang.RuntimeException: com.atlassian.bamboo.plugins.hg.HgCommandException: command [/usr/local/bin/hg, id, -i, --debug, --rev, ${bamboo.jira.version}, --config, ui.ssh=ssh -o StrictHostKeyChecking=no -o BatchMode=yes, file:///Users/akhachatryan/dev/Repositories/MercurialClone] failed. Working directory was `/Users/akhachatryan/Atlassian/BambooHome4.2.1/xml-data/build-dir/_hg-repositories-cache/6f80156028b3e846098db18bf296ceb6d6d498c0'. stderr: hg: parse error at 0: syntax error stdout: at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:119) at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:79) at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:174) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectionChangesWithRetry(DefaultChangeDetectionManager.java:389) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuild(DefaultChangeDetectionManager.java:260) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(DefaultChangeDetectionManager.java:218) ... Caused by: com.atlassian.bamboo.plugins.hg.HgCommandException: command [/usr/local/bin/hg, id, -i, --debug, --rev, ${bamboo.jira.version}, --config, ui.ssh=ssh -o StrictHostKeyChecking=no -o BatchMode=yes, file:///Users/akhachatryan/dev/Repositories/MercurialClone] failed. Working directory was `/Users/akhachatryan/Atlassian/BambooHome4.2.1/xml-data/build-dir/_hg-repositories-cache/6f80156028b3e846098db18bf296ceb6d6d498c0'. stderr: hg: parse error at 0: syntax error stdout: at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.runCommand(HgCommandProcessor.java:460) at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.runCommand(HgCommandProcessor.java:418) at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.extractTipHash(HgCommandProcessor.java:485) at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.getRemoteTipForBranch(HgCommandProcessor.java:339) at com.atlassian.bamboo.plugins.hg.HgRepositoryAccessImpl.getLatestRemoteRevisionHash(HgRepositoryAccessImpl.java:321) at com.atlassian.bamboo.plugins.hg.HgRepositoryAccessImpl.collectChangesSinceLastBuild(HgRepositoryAccessImpl.java:94) at com.atlassian.bamboo.plugins.hg.HgRepository.collectChangesSinceLastBuild(HgRepository.java:371) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager$1.call(DefaultChangeDetectionManager.java:393) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager$1.call(DefaultChangeDetectionManager.java:390) at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:100) ... 38 more Caused by: com.atlassian.utils.process.ProcessException: Non-zero exit code: 255 at com.atlassian.utils.process.PluggableProcessHandler.complete(PluggableProcessHandler.java:83) at com.atlassian.utils.process.ExternalProcess.finish(ExternalProcess.java:376) at com.atlassian.utils.process.ExternalProcess.execute(ExternalProcess.java:419) at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.runCommand(HgCommandProcessor.java:455) ... 47 more {code} Bamboo cannot even substitute that variable in a script task: {code} /var/folders/gl/0lz__sg17fn4z5gcl_lsb66m0000gp/T/PROJ1-PLAN1-JOB1-4-ScriptBuildTask-8957754229755330542.sh: line 3: ${bamboo.jira.version}: bad substitution {code}

    Atlassian JIRA | 4 years ago | Armen Khachatryan [Atlassian]
    java.lang.RuntimeException: com.atlassian.bamboo.plugins.hg.HgCommandException: command [/usr/local/bin/hg, id, -i, --debug, --rev, ${bamboo.jira.version}, --config, ui.ssh=ssh -o StrictHostKeyChecking=no -o BatchMode=yes, file:///Users/akhachatryan/dev/Repositories/MercurialClone] failed. Working directory was `/Users/akhachatryan/Atlassian/BambooHome4.2.1/xml-data/build-dir/_hg-repositories-cache/6f80156028b3e846098db18bf296ceb6d6d498c0'. stderr: hg: parse error at 0: syntax error stdout:
  3. 0

    [BAM-13384] system.git.executable fails to detect git in PATH or cygwin - Atlassian JIRA

    atlassian.com | 1 year ago
    java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Checkout to revision 8c61bbd0bb9f4e7ab349632be9b0c0f23f443188 has failed.command git log -1 --encoding=UTF-8 --format=%d --decorate=full 8c61bbd0bb9f4e7ab349632be9b0c0f23f443188 failed with code 128. Working directory was [C:\Users\Administrator\bamboo-agent-home\xml-data\build-dir\XA-XENADMIN-JOB1\xenadmin.git]., stderr: error: object directory /cygdrive/c/Users/Administrator/bamboo-agent-home/xml-data/build-dir/XA-XENADMIN-JOB1/xenadmin.git/.git/objects/C:\Users\Administrator\bamboo-agent-home\xml-data\build-dir\_git-repositories-cache\020a7b48f134e4c6b9eb9629255977ea9f7f6c21\.git\objects does not exist; check .git/objects/info/alternates. fatal: bad object 8c61bbd0bb9f4e7ab349632be9b0c0f23f443188
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Checkout failed

    GitHub | 4 years ago | maverick229
    java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Checkout to revision e57fa792e434a146da732a50a370ff0f9272f5d2 has failed.command /usr/bin/git log -1 --format=%d --decorate=full e57fa792e434a146da732a50a370ff0f9272f5d2 failed with code 128. Working directory was [/local/mnt/workspace/bamboo-agent-2/xml-data/build-dir/QCAWBIT-BITCI-JOB1]., stderr: fatal: bad object e57fa792e434a146da732a50a370ff0f9272f5d2
  6. 0

    Unable to start selendroid server

    GitHub | 2 years ago | Sendlink
    java.lang.RuntimeException: io.selendroid.exceptions. ShellCommandException: An error occured while executing shell command: C:\Progra m Files\Java\jdk1.8.0_20;C:\Program Files\Java\jre1.8.0_20;C:\Program Files (x86 )\Java\jre1.8.0_20\bin\keytool.exe -genkey -v -keystore C:\Users\Raghuram\.andro id\debug.keystore -storepass android -alias androiddebugkey -keypass android -dn ame CN=Android Debug,O=Android,C=US -storetype JKS -sigalg MD5withRSA -keyalg RS A -validity 9999

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      com.atlassian.bamboo.plugins.hg.HgCommandException: command [/usr/local/bin/hg, id, -i, --debug, --rev, ${bamboo.jira.version}, --config, ui.ssh=ssh -o StrictHostKeyChecking=no -o BatchMode=yes, file:///Users/akhachatryan/dev/Repositories/MercurialClone] failed. Working directory was `/Users/akhachatryan/Atlassian/BambooHome4.2.1/xml-data/build-dir/_hg-repositories-cache/6f80156028b3e846098db18bf296ceb6d6d498c0'. stderr: hg: parse error at 0: syntax error stdout:

      at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun()
    2. com.atlassian.bamboo
      DefaultChangeDetectionManager.collectChangesSinceRevisions
      1. com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:119)
      2. com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:79)
      3. com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:174)
      4. com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectionChangesWithRetry(DefaultChangeDetectionManager.java:389)
      5. com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuild(DefaultChangeDetectionManager.java:260)
      6. com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(DefaultChangeDetectionManager.java:218)
      6 frames