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

"Always Force Sync" and "Don't update server database on sync (-p)" are not compatible with each other

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi there,

      If you configure the Perforce plugin to "Always Force Sync" and "Don't update server database on sync (-p)" then this will fail with:

      [NvTriStrip] $ "C:
      Program Files\\Perforce
      p4.exe" -s sync -f -p //Jenkins_NvTriStrip-Build2/...@167119
      11:33:20 Caught exception communicating with perforce. Errors encountered while force syncing: error: Usage: sync [ -n -p -q ] [-m max] [files...]
      11:33:20 com.tek42.perforce.PerforceException: Errors encountered while force syncing: error: Usage: sync [ -n -p -q ] [-m max] [files...]
      11:33:20
      11:33:20 at com.tek42.perforce.parse.Workspaces.syncTo(Workspaces.java:167)
      11:33:20 at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:747)
      11:33:20 at hudson.model.AbstractProject.checkout(AbstractProject.java:1195)
      11:33:20 at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:579)
      11:33:20 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:468)
      11:33:20 at hudson.model.Run.run(Run.java:1408)
      11:33:20 at hudson.matrix.MatrixBuild.run(MatrixBuild.java:252)
      11:33:20 at hudson.model.ResourceController.execute(ResourceController.java:88)
      11:33:20 at hudson.model.Executor.run(Executor.java:238)
      11:33:20 at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)
      11:33:20 ERROR: Unable to communicate with perforce. Errors encountered while force syncing: error: Usage: sync [ -n -p -q ] [-m max] [files...]

      Is it possible to update the Perforce plugin to at least warn or error if both these options are enabled?

      Regards,
      Tom.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Rob Petti
          Path:
          src/main/java/hudson/plugins/perforce/PerforceSCM.java
          src/main/resources/hudson/plugins/perforce/PerforceSCM/config.jelly
          http://jenkins-ci.org/commit/perforce-plugin/eeae9a5782a857a47ef98e25c5cbe5651e1731f2
          Log:
          [FIXED JENKINS-12948] adding form validation for -p and -f option conflict

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Rob Petti Path: src/main/java/hudson/plugins/perforce/PerforceSCM.java src/main/resources/hudson/plugins/perforce/PerforceSCM/config.jelly http://jenkins-ci.org/commit/perforce-plugin/eeae9a5782a857a47ef98e25c5cbe5651e1731f2 Log: [FIXED JENKINS-12948] adding form validation for -p and -f option conflict
          Hide
          dogfood dogfood added a comment -

          Integrated in plugins_perforce #188
          [FIXED JENKINS-12948] adding form validation for -p and -f option conflict (Revision eeae9a5782a857a47ef98e25c5cbe5651e1731f2)

          Result = UNSTABLE
          Rob Petti :
          Files :

          • src/main/resources/hudson/plugins/perforce/PerforceSCM/config.jelly
          • src/main/java/hudson/plugins/perforce/PerforceSCM.java
          Show
          dogfood dogfood added a comment - Integrated in plugins_perforce #188 [FIXED JENKINS-12948] adding form validation for -p and -f option conflict (Revision eeae9a5782a857a47ef98e25c5cbe5651e1731f2) Result = UNSTABLE Rob Petti : Files : src/main/resources/hudson/plugins/perforce/PerforceSCM/config.jelly src/main/java/hudson/plugins/perforce/PerforceSCM.java

            People

            • Assignee:
              rpetti Rob Petti
              Reporter:
              tfields Thomas Fields
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: