Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-20838

Synergy plug-in update command with "visible" or "shared" projects

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • synergy-plugin
    • None
    • windows xp

      Hello,
      I am using Jenkins (version 1.504) with Synergy plug-in (version 1.7) and Synergy 7.1.
      After several tries, I noticed that if the projects states are “visible” or “shared” then the plug-in do not update them, but it just dose a “copy to file system”.
      We have done some changes in “SynergySCM.java” class, especially in “isStaticProject” method as follows:

      private boolean isStaticProject(String project, FilePath workspace) throws IOException, InterruptedException, SynergyException {
      // Get project state.
      GetProjectStateCommand command = new GetProjectStateCommand(project);
      getCommands().executeSynergyCommand(workspace, command);
      String state = command.getState();

      // Compute result.
      if ("prep".equals(state))

      { // Integration testing, become build manager. SetRoleCommand setRoleCommand = new SetRoleCommand(SetRoleCommand.BUILD_MANAGER); getCommands().executeSynergyCommand(workspace, setRoleCommand); return false; }

      else if ("working".equals(state))

      { // Development project with Insulated/Collaborative/Custom Development purpose. return false; }

      else if ("visible".equals(state))

      { // Development project with Visible Development purpose. return false; }

      else if ("shared".equals(state))

      { // Development project with Shared Development purpose. return false; }

      else

      { // Released project part of a baseline. return true; }

      }

      Then, I’ve generated the .hpi file. It works very well.
      Best regards.

          [JENKINS-20838] Synergy plug-in update command with "visible" or "shared" projects

          Garnik Arakelian created issue -
          Garnik Arakelian made changes -
          Description Original: Hello,
          I am using Jenkins (version 1.504) with Synergy plug-in (version 1.6) and Synergy 7.1.
          After several tries, I noticed that if the projects states are “visible” or “shared” then the plug-in do not update them, but it just dose a “copy to file system”.
          We have done some changes in “SynergySCM.java” class, especially in “isStaticProject” method as follows:

          private boolean isStaticProject(String project, FilePath workspace) throws IOException, InterruptedException, SynergyException {
          // Get project state.
          GetProjectStateCommand command = new GetProjectStateCommand(project);
          getCommands().executeSynergyCommand(workspace, command);
          String state = command.getState();

          // Compute result.
          if ("prep".equals(state)) {
          // Integration testing, become build manager.
          SetRoleCommand setRoleCommand = new SetRoleCommand(SetRoleCommand.BUILD_MANAGER);
          getCommands().executeSynergyCommand(workspace, setRoleCommand);
          return false;
          } else if ("working".equals(state)) {
          // Development project with Insulated/Collaborative/Custom Development purpose.
          return false;
          } else if ("visible".equals(state)) {
          // Development project with Visible Development purpose.
          return false;
          } else if ("shared".equals(state)) {
          // Development project with Shared Development purpose.
          return false;
          } else {
          // Released project part of a baseline.
          return true;
          }
          }

          Then, I’ve generated the .hpi file. It works very well.
          Best regards.
          New: Hello,
          I am using Jenkins (version 1.504) with Synergy plug-in (version 1.7) and Synergy 7.1.
          After several tries, I noticed that if the projects states are “visible” or “shared” then the plug-in do not update them, but it just dose a “copy to file system”.
          We have done some changes in “SynergySCM.java” class, especially in “isStaticProject” method as follows:

          private boolean isStaticProject(String project, FilePath workspace) throws IOException, InterruptedException, SynergyException {
          // Get project state.
          GetProjectStateCommand command = new GetProjectStateCommand(project);
          getCommands().executeSynergyCommand(workspace, command);
          String state = command.getState();

          // Compute result.
          if ("prep".equals(state)) {
          // Integration testing, become build manager.
          SetRoleCommand setRoleCommand = new SetRoleCommand(SetRoleCommand.BUILD_MANAGER);
          getCommands().executeSynergyCommand(workspace, setRoleCommand);
          return false;
          } else if ("working".equals(state)) {
          // Development project with Insulated/Collaborative/Custom Development purpose.
          return false;
          } else if ("visible".equals(state)) {
          // Development project with Visible Development purpose.
          return false;
          } else if ("shared".equals(state)) {
          // Development project with Shared Development purpose.
          return false;
          } else {
          // Released project part of a baseline.
          return true;
          }
          }

          Then, I’ve generated the .hpi file. It works very well.
          Best regards.
          Garnik Arakelian made changes -
          Summary Original: Synergy plug-in update command New: Synergy plug-in update command with "visible" or "shared" projects
          Garnik Arakelian made changes -
          Assignee Original: Garnik Arakelian [ arakg ] New: jribette [ jribette ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 152649 ] New: JNJira + In-Review [ 178276 ]

            jribette jribette
            arakg Garnik Arakelian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: