Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-8812

[S2I] if MAVEN_MODULE is used reflect it in OUTPUT_DIR default value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • FIS 1.0 - OpenShift Fuse 3.1-GA
    • FIS-STI
    • None
    • % %

      It would be better to favor MAVEN_MODULE variable during setting the default value for OUTPUT dir. If there's multi module maven project in source git, then "target" dir is relative to module name. Now it's required to set up both vars.

      function get_output_dir() {
        # Where artifacts are created within the build
        local dir=${OUTPUT_DIR:-${S2I_SOURCE_DIR}/target}
        # If output_dir is not absolute then use it relative to S2I_SOURCE_DIR
        if [ "${dir:0:1}" != "/" ]; then
           dir="${S2I_SOURCE_DIR}/${dir}"
        fi
        echo ${dir}
      }
      

              Unassigned Unassigned
              dsimansk@redhat.com David Simansky
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: