org.swift.common.cli.AbstractRemoteClient$RemoteRestException: unknown

JIRA | George Meyer | 8 months ago
  1. 0

    When running run action to perform templated actions, getting an error difficult to decipher during action "addRepository". Creating a repository from scratch each time since each build plan needs a unique branch and there are many distinct repos. *Command being enacted in the Windows terminal:* {code:java} bamboo -v --action run --file bamboo_project_template.txt --findReplace "#PROJECT#:ENGLISHIVV13CID4160,#NAME#:"English-IV-v13-GS-4160",#WEBDAV#:educator_englishIV_v13_2_gs,#BRANCH#:gs_master_v13,#CLONEURL#:English%%20IV {code} *Template txt file being used:* {code:java} # Create a new project based on a template project --action cloneProject --project GE --toProject #PROJECT# # --name "#NAME#" # Add VSO/Git Repository --action addRepository --plan #PROJECT#-PRE --repositoryKey "GIT" --repository "VSO #WEBDAV#" --field1 repository.git.repositoryUrl --value1 https://flvs.visualstudio.com/DefaultCollection/cs/_git/#CLONEURL# --field2 repository.git.branch --value2 "#BRANCH#" --field3 repository.git.username --value3 "iceteam" --field4 repository.git.password --value4 "4bw5rngxkdklwww5xxxxxxxxxxxxxgar==xxxxxxxxxxxxxsg7mhn2ykmq" # Add a script task to PRE --action addTask --build #PROJECT#-PRE --job "default" --taskKey "CHECKOUT" --fields "argument:pubplan" --field1 "Repository" --value1 "VSO #WEBDAV#" --action addTask --build #PROJECT#-PRE --job "default" --taskKey "SCRIPT" --fields "argument:pubplan" --field1 "scriptLocation" --value1 "FILE" --field2 "scriptFile" --value2 "C:\Users\admin\Desktop\cwRsync_5.5.0_x86_Free\rsync_pub2.bat" --field3 "Argument" --value3 "${bamboo.buildKey} #WEBDAV#" {code} *CLI output pasted below:* {code:java} C:\Users\admin\Desktop\bamboo-cli-5.2.0>bamboo_action.bat C:\Users\admin\Desktop\bamboo-cli-5.2.0>bamboo -v --action run --file bamboo_project_template.txt --findReplace "#PROJECT#:ENGLISHIVV13CID4160,#NAME#:"English-IV-v13-GS-4160",#WEBD AV#:educator_englishIV_v13_2_gs,#BRANCH#:gs_master_v13,#CLONEURL#:English%20IV Server address: http://127.0.0.1:8085 Response code: 200, message: OK, url: http://127.0.0.1:8085/rest/org.swift.bamboo.cli/latest/validatelicense? # Create a new project based on a template project Run: --action cloneProject --project GE --toProject ENGLISHIVV13CID4160 Server address: http://127.0.0.1:8085 URL requested: http://127.0.0.1:8085/rest/api/latest/project/GE? Request type: GET Content type: application/json Response code: 200, message: OK, url: http://127.0.0.1:8085/rest/api/latest/project/GE? URL requested: http://127.0.0.1:8085/rest/api/latest/project/GE?&expand=plans.plan&max-results=100&start-index=0 Request type: GET Content type: application/json Response code: 200, message: OK, url: http://127.0.0.1:8085/rest/api/latest/project/GE?&expand=plans.plan&max-results=100&start-index=0 URL requested: http://127.0.0.1:8085/rest/api/latest/project?&max-results=2147483647 Request type: GET Content type: application/xml Response code: 200, message: OK, url: http://127.0.0.1:8085/rest/api/latest/project?&max-results=2147483647 Looking for project ENGLISHIVV13CID4160: AGV3 Looking for project ENGLISHIVV13CID4160: C1VG Looking for project ENGLISHIVV13CID4160: EIVG Looking for project ENGLISHIVV13CID4160: MLAVG Looking for project ENGLISHIVV13CID4160: MUHV3G Looking for project ENGLISHIVV13CID4160: MWHVG4 Looking for project ENGLISHIVV13CID4160: P1VG Looking for project ENGLISHIVV13CID4160: GE URL requested: http://127.0.0.1:8085/build/admin/create/performClonePlan.action?&planKeyToClone=GE-PRE&chainName=pubplan&projectKey=ENGLISHIVV13CID4160&chainKey=PRE&clonePlan=true& bamboo.successReturnMode=json&save=Create&projectName=ENGLISHIVV13CID4160&chainDescription=&tmp.createAsEnabled=true&existingProjectKey=newProject Request type: POST Content type: application/json Response code: 200, message: OK, url: http://127.0.0.1:8085/build/admin/create/performClonePlan.action?&planKeyToClone=GE-PRE&chainName=pubplan&projectKey=ENGLISHIVV13CID4160&chain Key=PRE&clonePlan=true&bamboo.successReturnMode=json&save=Create&projectName=ENGLISHIVV13CID4160&chainDescription=&tmp.createAsEnabled=true&existingProjectKey=newProject URL requested: http://127.0.0.1:8085/rest/api/latest/plan/ENGLISHIVV13CID4160-PRE? Request type: GET Content type: application/json Response code: 200, message: OK, url: http://127.0.0.1:8085/rest/api/latest/plan/ENGLISHIVV13CID4160-PRE? Plan ENGLISHIVV13CID4160-PRE created based on GE-PRE. 1 plans cloned from GE to ENGLISHIVV13CID4160. # --name "English-IV-v13-GS-4160" # Add VSO/Git Repository Run: --action addRepository --plan ENGLISHIVV13CID4160-PRE --repositoryKey "GIT" --repository "VSO educator_englishIV_v13_2_gs" --field1 repository.git.repositoryUrl --value1 https ://flvs.visualstudio.com/DefaultCollection/cs/_git/English%20IV --field2 repository.git.branch --value2 "gs_master_v13" --field3 repository.git.username --value3 "iceteam" --field4 repository.git.password --value4 "4bw5rngxkdklxxxxxxxxxxxxxxxxxxxxxxxx7mhn2ykmq" Server address: http://127.0.0.1:8085 URL requested: http://127.0.0.1:8085/rest/api/latest/plan/ENGLISHIVV13CID4160-PRE?&expand=plans.plan Request type: GET Content type: application/json Response code: 200, message: OK, url: http://127.0.0.1:8085/rest/api/latest/plan/ENGLISHIVV13CID4160-PRE?&expand=plans.plan URL requested: http://127.0.0.1:8085/chain/admin/config/editChainRepository.action?&buildKey=ENGLISHIVV13CID4160-PRE Request type: GET Content type: text/html Response code: 200, message: OK, url: http://127.0.0.1:8085/chain/admin/config/editChainRepository.action?&buildKey=ENGLISHIVV13CID4160-PRE URL requested: http://127.0.0.1:8085/rest/api/latest/plan/ENGLISHIVV13CID4160-PRE? Request type: GET Content type: application/json Response code: 200, message: OK, url: http://127.0.0.1:8085/rest/api/latest/plan/ENGLISHIVV13CID4160-PRE? URL requested: http://127.0.0.1:8085/chain/admin/config/createRepository.action?&confirm=true&selectedRepository=com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-git%3Agit&repo sitory.git.username=iceteam&bamboo.successReturnMode=json&repositoryId=0&planKey=ENGLISHIVV13CID4160-PRE&repository.git.branch=gs_master_v13&repository.git.password=***&repository. git.repositoryUrl=https%3A%2F%2Fflvs.visualstudio.com%2FDefaultCollection%2Fcs%2F_git%2FEnglish%2520IV&repositoryName=VSO+educator_englishIV_v13_2_gs Request type: POST Content type: application/json Response code: 200, message: OK, url: http://127.0.0.1:8085/chain/admin/config/createRepository.action?&confirm=true&selectedRepository=com.atlassian.bamboo.plugins.atlassian-bambo o-plugin-git%3Agit&repository.git.username=iceteam&bamboo.successReturnMode=json&repositoryId=0&planKey=ENGLISHIVV13CID4160-PRE&repository.git.branch=gs_master_v13&repository.git.p assword=***&repository.git.repositoryUrl=https%3A%2F%2Fflvs.visualstudio.com%2FDefaultCollection%2Fcs%2F_git%2FEnglish%2520IV&repositoryName=VSO+educator_englishIV_v13_2_gs Remote error: unknown org.swift.common.cli.AbstractRemoteClient$RemoteRestException: unknown at org.swift.bamboo.cli.helpers.RepositoryHelper.addOrUpdateRepository(RepositoryHelper.java:197) at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:713) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:443) at org.swift.common.cli.CliClient.doWork(CliClient.java:454) at org.swift.common.cli.CliClient.doWork(CliClient.java:521) at org.swift.common.cli.CliClient.doWork(CliClient.java:517) at org.swift.common.cli.CliClient.processRunLine(CliClient.java:1253) at org.swift.common.cli.AbstractRemoteClient.processRunLine(AbstractRemoteClient.java:772) at org.swift.common.cli.CliClient.doSingleRunLine(CliClient.java:1225) at org.swift.common.cli.CliClient.run(CliClient.java:1086) at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:525) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:443) at org.swift.common.cli.CliClient.doWork(CliClient.java:454) at org.swift.bamboo.cli.BambooClient.main(BambooClient.java:253) Client error: 1 actions failed, 1 actions were successful from file: C:\Users\admin\Desktop\bamboo-cli-5.2.0\bamboo_project_template.txt org.swift.common.cli.CliClient$ClientException: 1 actions failed, 1 actions were successful from file: C:\Users\admin\Desktop\bamboo-cli-5.2.0\bamboo_project_template.txt at org.swift.common.cli.CliClient.run(CliClient.java:1159) at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:525) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:443) at org.swift.common.cli.CliClient.doWork(CliClient.java:454) at org.swift.bamboo.cli.BambooClient.main(BambooClient.java:253) C:\Users\admin\Desktop\bamboo-cli-5.2.0> {code}

    JIRA | 8 months ago | George Meyer
    org.swift.common.cli.AbstractRemoteClient$RemoteRestException: unknown
  2. 0

    When running run action to perform templated actions, getting an error difficult to decipher during action "addRepository". Creating a repository from scratch each time since each build plan needs a unique branch and there are many distinct repos. *Command being enacted in the Windows terminal:* {code:java} bamboo -v --action run --file bamboo_project_template.txt --findReplace "#PROJECT#:ENGLISHIVV13CID4160,#NAME#:"English-IV-v13-GS-4160",#WEBDAV#:educator_englishIV_v13_2_gs,#BRANCH#:gs_master_v13,#CLONEURL#:English%%20IV {code} *Template txt file being used:* {code:java} # Create a new project based on a template project --action cloneProject --project GE --toProject #PROJECT# # --name "#NAME#" # Add VSO/Git Repository --action addRepository --plan #PROJECT#-PRE --repositoryKey "GIT" --repository "VSO #WEBDAV#" --field1 repository.git.repositoryUrl --value1 https://flvs.visualstudio.com/DefaultCollection/cs/_git/#CLONEURL# --field2 repository.git.branch --value2 "#BRANCH#" --field3 repository.git.username --value3 "iceteam" --field4 repository.git.password --value4 "4bw5rngxkdklwww5xxxxxxxxxxxxxgar==xxxxxxxxxxxxxsg7mhn2ykmq" # Add a script task to PRE --action addTask --build #PROJECT#-PRE --job "default" --taskKey "CHECKOUT" --fields "argument:pubplan" --field1 "Repository" --value1 "VSO #WEBDAV#" --action addTask --build #PROJECT#-PRE --job "default" --taskKey "SCRIPT" --fields "argument:pubplan" --field1 "scriptLocation" --value1 "FILE" --field2 "scriptFile" --value2 "C:\Users\admin\Desktop\cwRsync_5.5.0_x86_Free\rsync_pub2.bat" --field3 "Argument" --value3 "${bamboo.buildKey} #WEBDAV#" {code} *CLI output pasted below:* {code:java} C:\Users\admin\Desktop\bamboo-cli-5.2.0>bamboo_action.bat C:\Users\admin\Desktop\bamboo-cli-5.2.0>bamboo -v --action run --file bamboo_project_template.txt --findReplace "#PROJECT#:ENGLISHIVV13CID4160,#NAME#:"English-IV-v13-GS-4160",#WEBD AV#:educator_englishIV_v13_2_gs,#BRANCH#:gs_master_v13,#CLONEURL#:English%20IV Server address: http://127.0.0.1:8085 Response code: 200, message: OK, url: http://127.0.0.1:8085/rest/org.swift.bamboo.cli/latest/validatelicense? # Create a new project based on a template project Run: --action cloneProject --project GE --toProject ENGLISHIVV13CID4160 Server address: http://127.0.0.1:8085 URL requested: http://127.0.0.1:8085/rest/api/latest/project/GE? Request type: GET Content type: application/json Response code: 200, message: OK, url: http://127.0.0.1:8085/rest/api/latest/project/GE? URL requested: http://127.0.0.1:8085/rest/api/latest/project/GE?&expand=plans.plan&max-results=100&start-index=0 Request type: GET Content type: application/json Response code: 200, message: OK, url: http://127.0.0.1:8085/rest/api/latest/project/GE?&expand=plans.plan&max-results=100&start-index=0 URL requested: http://127.0.0.1:8085/rest/api/latest/project?&max-results=2147483647 Request type: GET Content type: application/xml Response code: 200, message: OK, url: http://127.0.0.1:8085/rest/api/latest/project?&max-results=2147483647 Looking for project ENGLISHIVV13CID4160: AGV3 Looking for project ENGLISHIVV13CID4160: C1VG Looking for project ENGLISHIVV13CID4160: EIVG Looking for project ENGLISHIVV13CID4160: MLAVG Looking for project ENGLISHIVV13CID4160: MUHV3G Looking for project ENGLISHIVV13CID4160: MWHVG4 Looking for project ENGLISHIVV13CID4160: P1VG Looking for project ENGLISHIVV13CID4160: GE URL requested: http://127.0.0.1:8085/build/admin/create/performClonePlan.action?&planKeyToClone=GE-PRE&chainName=pubplan&projectKey=ENGLISHIVV13CID4160&chainKey=PRE&clonePlan=true& bamboo.successReturnMode=json&save=Create&projectName=ENGLISHIVV13CID4160&chainDescription=&tmp.createAsEnabled=true&existingProjectKey=newProject Request type: POST Content type: application/json Response code: 200, message: OK, url: http://127.0.0.1:8085/build/admin/create/performClonePlan.action?&planKeyToClone=GE-PRE&chainName=pubplan&projectKey=ENGLISHIVV13CID4160&chain Key=PRE&clonePlan=true&bamboo.successReturnMode=json&save=Create&projectName=ENGLISHIVV13CID4160&chainDescription=&tmp.createAsEnabled=true&existingProjectKey=newProject URL requested: http://127.0.0.1:8085/rest/api/latest/plan/ENGLISHIVV13CID4160-PRE? Request type: GET Content type: application/json Response code: 200, message: OK, url: http://127.0.0.1:8085/rest/api/latest/plan/ENGLISHIVV13CID4160-PRE? Plan ENGLISHIVV13CID4160-PRE created based on GE-PRE. 1 plans cloned from GE to ENGLISHIVV13CID4160. # --name "English-IV-v13-GS-4160" # Add VSO/Git Repository Run: --action addRepository --plan ENGLISHIVV13CID4160-PRE --repositoryKey "GIT" --repository "VSO educator_englishIV_v13_2_gs" --field1 repository.git.repositoryUrl --value1 https ://flvs.visualstudio.com/DefaultCollection/cs/_git/English%20IV --field2 repository.git.branch --value2 "gs_master_v13" --field3 repository.git.username --value3 "iceteam" --field4 repository.git.password --value4 "4bw5rngxkdklxxxxxxxxxxxxxxxxxxxxxxxx7mhn2ykmq" Server address: http://127.0.0.1:8085 URL requested: http://127.0.0.1:8085/rest/api/latest/plan/ENGLISHIVV13CID4160-PRE?&expand=plans.plan Request type: GET Content type: application/json Response code: 200, message: OK, url: http://127.0.0.1:8085/rest/api/latest/plan/ENGLISHIVV13CID4160-PRE?&expand=plans.plan URL requested: http://127.0.0.1:8085/chain/admin/config/editChainRepository.action?&buildKey=ENGLISHIVV13CID4160-PRE Request type: GET Content type: text/html Response code: 200, message: OK, url: http://127.0.0.1:8085/chain/admin/config/editChainRepository.action?&buildKey=ENGLISHIVV13CID4160-PRE URL requested: http://127.0.0.1:8085/rest/api/latest/plan/ENGLISHIVV13CID4160-PRE? Request type: GET Content type: application/json Response code: 200, message: OK, url: http://127.0.0.1:8085/rest/api/latest/plan/ENGLISHIVV13CID4160-PRE? URL requested: http://127.0.0.1:8085/chain/admin/config/createRepository.action?&confirm=true&selectedRepository=com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-git%3Agit&repo sitory.git.username=iceteam&bamboo.successReturnMode=json&repositoryId=0&planKey=ENGLISHIVV13CID4160-PRE&repository.git.branch=gs_master_v13&repository.git.password=***&repository. git.repositoryUrl=https%3A%2F%2Fflvs.visualstudio.com%2FDefaultCollection%2Fcs%2F_git%2FEnglish%2520IV&repositoryName=VSO+educator_englishIV_v13_2_gs Request type: POST Content type: application/json Response code: 200, message: OK, url: http://127.0.0.1:8085/chain/admin/config/createRepository.action?&confirm=true&selectedRepository=com.atlassian.bamboo.plugins.atlassian-bambo o-plugin-git%3Agit&repository.git.username=iceteam&bamboo.successReturnMode=json&repositoryId=0&planKey=ENGLISHIVV13CID4160-PRE&repository.git.branch=gs_master_v13&repository.git.p assword=***&repository.git.repositoryUrl=https%3A%2F%2Fflvs.visualstudio.com%2FDefaultCollection%2Fcs%2F_git%2FEnglish%2520IV&repositoryName=VSO+educator_englishIV_v13_2_gs Remote error: unknown org.swift.common.cli.AbstractRemoteClient$RemoteRestException: unknown at org.swift.bamboo.cli.helpers.RepositoryHelper.addOrUpdateRepository(RepositoryHelper.java:197) at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:713) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:443) at org.swift.common.cli.CliClient.doWork(CliClient.java:454) at org.swift.common.cli.CliClient.doWork(CliClient.java:521) at org.swift.common.cli.CliClient.doWork(CliClient.java:517) at org.swift.common.cli.CliClient.processRunLine(CliClient.java:1253) at org.swift.common.cli.AbstractRemoteClient.processRunLine(AbstractRemoteClient.java:772) at org.swift.common.cli.CliClient.doSingleRunLine(CliClient.java:1225) at org.swift.common.cli.CliClient.run(CliClient.java:1086) at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:525) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:443) at org.swift.common.cli.CliClient.doWork(CliClient.java:454) at org.swift.bamboo.cli.BambooClient.main(BambooClient.java:253) Client error: 1 actions failed, 1 actions were successful from file: C:\Users\admin\Desktop\bamboo-cli-5.2.0\bamboo_project_template.txt org.swift.common.cli.CliClient$ClientException: 1 actions failed, 1 actions were successful from file: C:\Users\admin\Desktop\bamboo-cli-5.2.0\bamboo_project_template.txt at org.swift.common.cli.CliClient.run(CliClient.java:1159) at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:525) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:443) at org.swift.common.cli.CliClient.doWork(CliClient.java:454) at org.swift.bamboo.cli.BambooClient.main(BambooClient.java:253) C:\Users\admin\Desktop\bamboo-cli-5.2.0> {code}

    JIRA | 8 months ago | George Meyer
    org.swift.common.cli.AbstractRemoteClient$RemoteRestException: unknown
  3. 0

    From Timothy: Can you please add an addRepository example with the repositoryKey GIT. The below command with repositoryKey of BITBUCKET works and it adds a repository to Bamboo. {noformat} java \ -jar /home/me/bamboo-cli-5.1.0/lib/bamboo-cli-5.1.0.jar \ -a addRepository \ --verbose \ --server http://bamboo.server.local:8085 \ --user root \ --password password \ --name git-example4 \ --repositoryKey BITBUCKET \ --field1 repository.bitbucket.repository --value1 project/git-example \ --field2 repository.bitbucket.username --value2 root \ --field3 repository.bitbucket.temporary.password --value3 'password' \ --field4 selectedWebRepositoryViewer --value4 bamboo.webrepositoryviewer.provided:noRepositoryViewer \ --field5 repository.git.repositoryUrl --value5 http://gitlab.server.local.local/project/repo1.git \ --field6 repository.bitbucket.password.change --value6 true \ --fields repository.bitbucket.scm:GIT,repository.bitbucket.branch:master,repository.bitbucket.commandTimeout:180 {noformat} The problem is with this is that the repository key is BITBUCKET and with BITBUCKET, Bamboo does not store the repositoryURL. If I change the repositoryKey to GIT, I get an error of “unknown” with the following output. {noformat} Server address: http://bamboo.server.local:8085/rest/api Response code: 200, message: OK, url: http://bamboo.server.local:8085/rest/org.swift.bamboo.cli/latest/validatelicense? URL requested: http://bamboo.server.local:8085/admin/configureGlobalRepositories!default.action? Request type: GET Content type: text/html Response code: 200, message: OK, url: http://bamboo.server.local:8085/admin/configureGlobalRepositories!default.action? URL requested: http://bamboo.server.local:8085/admin/createGlobalRepository.action?&repository.bitbucket.temporary.password=password&repository.bitbucket.repository=project%2Fgit-example&bamboo.successReturnMode=json&repositoryName=git-example4&repository.bitbucket.commandTimeout=180&repository.bitbucket.username=root&selectedWebRepositoryViewer=bamboo.webrepositoryviewer.provided%3AnoRepositoryViewer&confirm=true&selectedRepository=com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-git%3Agit&repositoryId=0&repository.bitbucket.password.change=true&repository.bitbucket.scm=GIT&repository.git.repositoryUrl=http%3A%2F%2Fgitlab.server.local%2Fproject%2Frepo1.git&repository.bitbucket.branch=master Request type: POST Content type: application/json Response code: 200, message: OK, url: http://bamboo.server.local:8085/admin/createGlobalRepository.action?&repository.bitbucket.temporary.password=password&repository.bitbucket.repository=OMS%2Fgit-example&bamboo.successReturnMode=json&repositoryName=git-example4&repository.bitbucket.commandTimeout=180&repository.bitbucket.username=root&selectedWebRepositoryViewer=bamboo.webrepositoryviewer.provided%3AnoRepositoryViewer&confirm=true&selectedRepository=com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-git%3Agit&repositoryId=0&repository.bitbucket.password.change=true&repository.bitbucket.scm=GIT&repository.git.repositoryUrl=http%3A%2F%2Fgitlab.server.local%2Fproject%2FwebappService-veo-one-dashboard.git&repository.bitbucket.branch=master Remote error: unknown org.swift.common.cli.AbstractRemoteClient$RemoteRestException: unknown at org.swift.bamboo.cli.helpers.RepositoryHelper.addOrUpdateRepository(RepositoryHelper.java:197) at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:704) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:312) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.bamboo.cli.BambooClient.main(BambooClient.java:257) {noformat} I decompiled the class file with jad and looked at RepositoryHelper.java but it was not helpful. I need to know what is unknown but I cannot figure it out from the code. I have hundreds of build plans to import to Bamboo so I need to use the command line. Thank you.

    JIRA | 10 months ago | Bob Swift
    org.swift.common.cli.AbstractRemoteClient$RemoteRestException: unknown
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    From Timothy: Can you please add an addRepository example with the repositoryKey GIT. The below command with repositoryKey of BITBUCKET works and it adds a repository to Bamboo. {noformat} java \ -jar /home/me/bamboo-cli-5.1.0/lib/bamboo-cli-5.1.0.jar \ -a addRepository \ --verbose \ --server http://bamboo.server.local:8085 \ --user root \ --password password \ --name git-example4 \ --repositoryKey BITBUCKET \ --field1 repository.bitbucket.repository --value1 project/git-example \ --field2 repository.bitbucket.username --value2 root \ --field3 repository.bitbucket.temporary.password --value3 'password' \ --field4 selectedWebRepositoryViewer --value4 bamboo.webrepositoryviewer.provided:noRepositoryViewer \ --field5 repository.git.repositoryUrl --value5 http://gitlab.server.local.local/project/repo1.git \ --field6 repository.bitbucket.password.change --value6 true \ --fields repository.bitbucket.scm:GIT,repository.bitbucket.branch:master,repository.bitbucket.commandTimeout:180 {noformat} The problem is with this is that the repository key is BITBUCKET and with BITBUCKET, Bamboo does not store the repositoryURL. If I change the repositoryKey to GIT, I get an error of “unknown” with the following output. {noformat} Server address: http://bamboo.server.local:8085/rest/api Response code: 200, message: OK, url: http://bamboo.server.local:8085/rest/org.swift.bamboo.cli/latest/validatelicense? URL requested: http://bamboo.server.local:8085/admin/configureGlobalRepositories!default.action? Request type: GET Content type: text/html Response code: 200, message: OK, url: http://bamboo.server.local:8085/admin/configureGlobalRepositories!default.action? URL requested: http://bamboo.server.local:8085/admin/createGlobalRepository.action?&repository.bitbucket.temporary.password=password&repository.bitbucket.repository=project%2Fgit-example&bamboo.successReturnMode=json&repositoryName=git-example4&repository.bitbucket.commandTimeout=180&repository.bitbucket.username=root&selectedWebRepositoryViewer=bamboo.webrepositoryviewer.provided%3AnoRepositoryViewer&confirm=true&selectedRepository=com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-git%3Agit&repositoryId=0&repository.bitbucket.password.change=true&repository.bitbucket.scm=GIT&repository.git.repositoryUrl=http%3A%2F%2Fgitlab.server.local%2Fproject%2Frepo1.git&repository.bitbucket.branch=master Request type: POST Content type: application/json Response code: 200, message: OK, url: http://bamboo.server.local:8085/admin/createGlobalRepository.action?&repository.bitbucket.temporary.password=password&repository.bitbucket.repository=OMS%2Fgit-example&bamboo.successReturnMode=json&repositoryName=git-example4&repository.bitbucket.commandTimeout=180&repository.bitbucket.username=root&selectedWebRepositoryViewer=bamboo.webrepositoryviewer.provided%3AnoRepositoryViewer&confirm=true&selectedRepository=com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-git%3Agit&repositoryId=0&repository.bitbucket.password.change=true&repository.bitbucket.scm=GIT&repository.git.repositoryUrl=http%3A%2F%2Fgitlab.server.local%2Fproject%2FwebappService-veo-one-dashboard.git&repository.bitbucket.branch=master Remote error: unknown org.swift.common.cli.AbstractRemoteClient$RemoteRestException: unknown at org.swift.bamboo.cli.helpers.RepositoryHelper.addOrUpdateRepository(RepositoryHelper.java:197) at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:704) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:312) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.bamboo.cli.BambooClient.main(BambooClient.java:257) {noformat} I decompiled the class file with jad and looked at RepositoryHelper.java but it was not helpful. I need to know what is unknown but I cannot figure it out from the code. I have hundreds of build plans to import to Bamboo so I need to use the command line. Thank you.

    JIRA | 10 months ago | Bob Swift
    org.swift.common.cli.AbstractRemoteClient$RemoteRestException: unknown
  6. 0

    Note: Declared this issue as *Critical* because we have just rolled out an Automation process to our 900 Devs. Issue: We have 1448 plans in total and when doing the clone, the debug/verbose output shows that it gets through 1000 plans and then bails stating that it cannot find the plan. It is at about 1166. I googled and found that it is a max-results issue so, I tried to move the plan to clone very early in the list. This moved the problem further down the process to the verification step of the cloned plan and it could not be found for the same reasoning. What are your suggestions to override the 1000 limit? This the same fail point in both tests: PG360X-RELEASEDN32 The following is the error stack from the second test (the source plan was moved before the 1000 limit) {code} Looking for plan PG3826-PATCHRSN: PG360X-RELEASEDN32 Failure response: {"status":"OK"} Remote error: Clone build plan to PG3826-PATCHRSN failed. org.swift.common.cli.AbstractRemoteClient$RemoteRestException: Clone build plan to PG3826-PATCHRSN failed. at org.swift.bamboo.cli.BambooClient.clonePlan(BambooClient.java:1752) at org.swift.bamboo.cli.BambooClient.clonePlan(BambooClient.java:1679) at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:400) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:122) at org.swift.common.cli.CliClient.doWork(CliClient.java:315) at org.swift.bamboo.cli.BambooClient.main(BambooClient.java:104) {code}

    JIRA | 4 years ago | Richard Neale
    org.swift.common.cli.AbstractRemoteClient$RemoteRestException: Clone build plan to PG3826-PATCHRSN failed.

    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. org.swift.common.cli.AbstractRemoteClient$RemoteRestException

      unknown

      at org.swift.bamboo.cli.helpers.RepositoryHelper.addOrUpdateRepository()
    2. org.swift.bamboo
      BambooClient.handleRequest
      1. org.swift.bamboo.cli.helpers.RepositoryHelper.addOrUpdateRepository(RepositoryHelper.java:197)
      2. org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:713)
      2 frames
    3. org.swift.common
      CliClient.run
      1. org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:443)
      2. org.swift.common.cli.CliClient.doWork(CliClient.java:454)
      3. org.swift.common.cli.CliClient.doWork(CliClient.java:521)
      4. org.swift.common.cli.CliClient.doWork(CliClient.java:517)
      5. org.swift.common.cli.CliClient.processRunLine(CliClient.java:1253)
      6. org.swift.common.cli.AbstractRemoteClient.processRunLine(AbstractRemoteClient.java:772)
      7. org.swift.common.cli.CliClient.doSingleRunLine(CliClient.java:1225)
      8. org.swift.common.cli.CliClient.run(CliClient.java:1086)
      8 frames
    4. org.swift.bamboo
      BambooClient.handleRequest
      1. org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:525)
      1 frame
    5. org.swift.common
      CliClient.doWork
      1. org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:443)
      2. org.swift.common.cli.CliClient.doWork(CliClient.java:454)
      2 frames
    6. org.swift.bamboo
      BambooClient.main
      1. org.swift.bamboo.cli.BambooClient.main(BambooClient.java:253)
      1 frame