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

Unable to utilize the "allwrite" feature with static workspaces

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • p4-plugin
    • com.perforce.p4java.programVersion 1.0.17/Windows Server 2008 R2
      Jenkins Version 1.580.1
      Server version: P4D/NTX86/2013.1/628821 (2013/04/23)

      I've defined a static workspace within p4 with the allwrite, and clobber options set. I've setup a build within jenkins to utilize the static workspace. Files are successfully pulled down on the slave machine, but all files are set to read-only. Upon review of the workspace configuration within p4 I see the "allwrite" option has been turned off.

      It appears the p4-plugin is removing the allwrite option on the static workspace.

          [JENKINS-25553] Unable to utilize the "allwrite" feature with static workspaces

          Paul Allen added a comment -

          I think this is fixed:

          // Set clobber on to ensure workspace is always good
          ClientOptions options = new ClientOptions();
          options.setClobber(true);
          iclient.setOptions(options);
          

          changed to...

          // Set clobber on to ensure workspace is always good
          IClientOptions options = iclient.getOptions();
          options.setClobber(true);
          iclient.setOptions(options);
          

          The old code created a 'new' object and would overwrite the settings.

          Paul Allen added a comment - I think this is fixed: // Set clobber on to ensure workspace is always good ClientOptions options = new ClientOptions(); options.setClobber( true ); iclient.setOptions(options); changed to... // Set clobber on to ensure workspace is always good IClientOptions options = iclient.getOptions(); options.setClobber( true ); iclient.setOptions(options); The old code created a 'new' object and would overwrite the settings.

          Paul Allen added a comment -

          1.0.21

          Paul Allen added a comment - 1.0.21

            Unassigned Unassigned
            blahr457 Bradley L
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: