Uploaded image for project: 'OCMUI - OpenShift Cluster Manager UI'
  1. OCMUI - OpenShift Cluster Manager UI
  2. OCMUI-2069

master build is broken due to failed parsing of yarn command

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • None
    • Core UI
    • False
    • Hide

      None

      Show
      None
    • False
    • Critical

      jenkins attempts to run this (via universal_build, inside the frontend-build-container):

      yarn 'build:prod --env api-env=staging --output-path '\''dist'\'''
      

      which of course fails, cuz the command and the args are bound together in single-quotes!
      this error is thrown:

      error Command "build:prod --env api-env=staging --output-path 'dist'" not found.
      

      this can be fixed by encapsulating the entire command at build_deploy.sh (with its 2 variations for staging/production api-envs) into separate npm-scripts.

              emalka@redhat.com Eliran Malka
              emalka@redhat.com Eliran Malka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: