Package com.atlassian.bamboo.repository

Examples of com.atlassian.bamboo.repository.RepositoryException


      return QueryCommands.GetChangesets(null, revClause, mRepSpec);
    }
    catch (PlasticException ex)  {
      String message = "Error getting changesets to be committed: " + ex.getMessage();
      log.warn(message, ex);
      throw new RepositoryException(message);
    }
  }
View Full Code Here


        {
            throw e;
        }
        catch (Exception e)
        {
            throw new RepositoryException("An error occurred when updating workspace.", e);
        }
    }
View Full Code Here

      revisions = QueryCommands.GetRevisions(null, statusClause.getWhereString(), mRepSpec);
    }
    catch(PlasticException ex) {
      String message = "Error getting changeset revision: " + ex.getMessage();
      log.warn(message, ex);
      throw new RepositoryException(message);
    }

    if (revisions.length < 1) {
      String message = "Error getting revision branch: no branches returned!";
      log.warn(message);
      throw new RepositoryException(message);
    }

    for(InternalRevisionInfo revision : revisions)  {
      CommitFileImpl commitFile = new CommitFileImpl();
      String filename = revision.getItemPath();
View Full Code Here

            WorkspaceInfo wkInfo = getWorkpsaceInfoFromPath(wkPath);

      if(wkInfo == null) {
        String message = "Unable to create workspace name " + wkName + " at " + wkPath;
        log.warn(message);
        throw new RepositoryException(message);
      }
      return true;
    }
    catch (PlasticException ex) {
      String message = "Error creating workspace name " + wkName + " at " + wkPath + ": " + ex.getMessage();
      log.warn(message, ex);
      throw new RepositoryException(message);
    }
    }
View Full Code Here

      cmd.execute();
    }
    catch (PlasticException ex) {
      String message = "Error setting selector: " + ex.getMessage();
      log.warn(message, ex);
      throw new RepositoryException(message);
    }
  }
View Full Code Here

      return QueryCommands.GetResolvedBranches(mRepSpec);
    }
    catch (PlasticException ex) {
      String message = "Error getting resolved branches: " + ex.getMessage();
      log.warn(message, ex);
      throw new RepositoryException(message);
    }
  }
View Full Code Here

      return QueryCommands.GetChangesets(null, revClause, mRepSpec);
    }
    catch (PlasticException ex)  {
      String message = "Error getting last changeset on branch: " + ex.getMessage();
      log.warn(message, ex);
      throw new RepositoryException(message);
    }
  }
View Full Code Here

        {
            throw e;
        }
        catch (Exception e)
        {
            throw new RepositoryException("An error occurred when updating workspace.", e);
        }
    }
View Full Code Here

            BranchInfo[] branchesByName = QueryCommands.GetBranchesByName(branchNameForFindCommand, repSpec);
            for (BranchInfo aBranchesByName : branchesByName)
                if (aBranchesByName.getFullBranchNameWithoutBranchPreffix().equals(branch))
                    return aBranchesByName;

            throw new RepositoryException(String.format(
                    "Unable to obtain a valid branch. Branch name:%s rep spec: %s",
                    branch, repSpec));

        }
        catch (PlasticException e)
        {
            String exceptionMessage = "Failed to obtain the specified tracked branch:" +e.getMessage();
            log.error(exceptionMessage);
            log.debug(exceptionMessage +" - " +e.getStackTrace());
            throw new RepositoryException(exceptionMessage);
        }
    }
View Full Code Here

            log.debug("Getting open branches from branch"+ repositoryData.branch + ". Count: " + branchesByName.length);
            for(BranchInfo br : branchesByName) {
                openBranches.add(new VcsBranchImpl(br.getFullBranchNameWithoutBranchPreffix()));
            }
        } catch (PlasticException e) {
            throw new RepositoryException(String.format(
                   "getOpenBranches: An error occurred when retrieving child branches of branch:%s",repositoryData.branch), e);
        }

        return openBranches;
    }
View Full Code Here

TOP

Related Classes of com.atlassian.bamboo.repository.RepositoryException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.