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

      Hello,

      When I check the “maintain workarea” checkbox, Jenkins compares the Synergy project work area path (wa_path attribute) to its own work area and, if it is not the same, Jenkins issues the following command:
      ccm.exe attr -m wa_path -v C:\Jenkins\jobs\monTestSynergy\workspace -project alas000_demonstrateur~F558863.
      Synergy CLI answers :
      ccm command failed
      Invalid escape sequence for attr_value.
      The problem is the single backslash “\” that the CLI interprets as an escape sequence. To remedy this problem, the plug-in should double the backslash, like this:
      ccm.exe attr -m wa_path -v C:\\Jenkins\\jobs\\monTestSynergy
      workspace -project alas000_demonstrateur~F558863.

      Best regards

          [JENKINS-16623] backslash problem with workarea path

          Avy Sharell added a comment -

          There seems to be a workaround that still allows Jenkins to set the Synergy workarea.
          Set the Jenkins project path with forward slashes (i.e. C:/Projects/myjenkinsproject).
          Jenkins then issues the command ccm attr -m wa_path -v C:/Projects/myjenkinsproject -project ....)
          and the Synergy Client accept this (and translates this to a Windows Path when working on Windows).
          Tested with Jenkins 1.588 and Synergy Developper (Java) Client Client 7.1.

          Avy Sharell added a comment - There seems to be a workaround that still allows Jenkins to set the Synergy workarea. Set the Jenkins project path with forward slashes (i.e. C:/Projects/myjenkinsproject). Jenkins then issues the command ccm attr -m wa_path -v C:/Projects/myjenkinsproject -project ....) and the Synergy Client accept this (and translates this to a Windows Path when working on Windows). Tested with Jenkins 1.588 and Synergy Developper (Java) Client Client 7.1.

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

              Created:
              Updated: