public PlanPermissions PlanPermission() { PlanPermissions planPermission = new PlanPermissions(new PlanIdentifier("DBS", "SB")) .permissions(new Permissions() .userPermissions("admin", PermissionType.ADMIN, PermissionType.VIEW, PermissionType.CLONE, PermissionType.BUILD, PermissionType.EDIT)); return(planPermission); }
public static void Main(string[] args) { //By default credentials are read from the '.credentials' file. BambooServer bambooServer = new BambooServer("http://bamboo-server:8085"); var planSpec = new PlanSpec(); Plan plan = planSpec.Plan(); bambooServer.publish(plan); PlanPermissions planPermission = planSpec.PlanPermission(); bambooServer.publish(planPermission); }