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

Checkout continues even if `hg update` returns an error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • mercurial-plugin
    • None
    • Windows Server 2008

      Jenkins continues to build a job when a mercurial returns an error. Section that should have failed:
      c:\python27\scripts\hg.bat --config extensions.largefiles= update --clean --rev stable
      abort: d:\Jenkins\jobs\This is a test project that should break but runs successfully\workspace\This is a test project that should break but runs successfully\.hglf/sites/ama_main/departments/engineering/pdf/Martin_Road_Plan/Flooding_Mitigation_Conceptual_Eval_Final.pdf: The system cannot find the path specified

      running errorlevel for the same command from the command line returns 255

      Full log of a job below:
      Started by user Coleman, Brandon
      Building on master in workspace d:\Jenkins\jobs\This is a test project that should break but runs successfully\workspace\This is a test project that should break but runs successfully
      Acquired master cache lock.
      [43574B1BAE5B4759D1B76C50474205426641B9D4-web] $ c:\python27\scripts\hg.bat --config extensions.largefiles= pull
      pulling from D:\Repositories\web
      searching for changes
      no changes found
      Master cache lock released.
      [This is a test project that should break but runs successfully] $ c:\python27\scripts\hg.bat --config extensions.largefiles= pull --rev stable d:\Jenkins\hgcache\43574B1BAE5B4759D1B76C50474205426641B9D4-web
      pulling from d:\Jenkins\hgcache\43574B1BAE5B4759D1B76C50474205426641B9D4-web
      no changes found
      [This is a test project that should break but runs successfully] $ c:\python27\scripts\hg.bat --config extensions.largefiles= update --clean --rev stable
      abort: d:\Jenkins\jobs\This is a test project that should break but runs successfully\workspace\This is a test project that should break but runs successfully\.hglf/sites/ama_main/departments/engineering/pdf/Martin_Road_Plan/Flooding_Mitigation_Conceptual_Eval_Final.pdf: The system cannot find the path specified
      [This is a test project that should break but runs successfully] $ c:\python27\scripts\hg.bat --config extensions.largefiles= log --rev . --template

      {node}
      [This is a test project that should break but runs successfully] $ c:\python27\scripts\hg.bat --config extensions.largefiles= log --rev . --template {rev}
      ERROR: Expected to get a revision number but got '-1' instead.
      WARN: Revision data for previous build unavailable; unable to determine change log
      [This is a test project that should break but runs successfully] $ c:\python27\scripts\hg.bat --config extensions.largefiles= log --rev . --template {node}

      [This is a test project that should break but runs successfully] $ c:\python27\scripts\hg.bat --config extensions.largefiles= log --rev . --template

      {rev}

      ERROR: Expected to get a revision number but got '-1' instead.
      Finished: SUCCESS

            jglick Jesse Glick
            metrix Brandon Coleman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: