Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-1897

Every step should stop the whole script in case of an error

    XMLWordPrintable

    Details

      Description

      Currently there are functions launched without

       || return 1

      This prevents the script from stopping when the issue arises, even though errors are displayed.

      For example, during the JAR file mapping, if a dependency is incorrectly downloaded (meaning a distribution archive) then the processing will silently fail:

      [jartmp/nuxeo-distribution-tomcat-7.10-HF18.zip]
        End-of-central-directory signature not found.  Either this file is not
        a zipfile, or it constitutes one disk of a multi-part archive.  In the
        latter case the central directory and zipfile comment will be found on
        the last disk(s) of this archive.
      unzip:  cannot find zipfile directory in one of jartmp/nuxeo-distribution-tomcat-7.10-HF18.zip or
              jartmp/nuxeo-distribution-tomcat-7.10-HF18.zip.zip, and cannot find jartmp/nuxeo-distribution-tomcat-7.10-HF18.zip.ZIP, period.
      

      Adding

       || return 1

      should be enough.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: