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

Details

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

    Description

      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}
      }
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: