Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-4046

Deploying a new Kogito service from files in CLI not reading all files in the directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 1.1.0.Final
    • 1.0.0.Final
    • Operator
    • None
    • False
    • False
    • Undefined
    • Workaround Exists
    • Hide

      Pack the directory as a zip file instead.

      Show
      Pack the directory as a zip file instead.
    • ---
    • ---
    • 2020 Week 49-51 (from Nov 30)

      Having a tree like:

       
      conversion-flow
      ├── pom.xml
      ├── README.md
      └── src
          └── main
              └── resources
                  ├── application.properties
                  └── fahrenheit-to-celsius.sw.json
      

      Then build with:

      kogito deploy conversion-flow . --maven-mirror-url http://nexus3.temperature-conversion/repository/maven-public/
      

      The logs tell us:

      Kogito Build Service successfully installed in the Project temperature-conversion.
      Check the Service status by running 'oc describe kogitobuild/conversion-flow -n temperature-conversion'
      The provided source is a directory, packing files.
      File(s) found: [src/main/resources/application.properties].
      Triggering the new build
      The requested file(s) was successfully uploaded to OpenShift, the build conversion-flow-builder-1 with this file(s) should now be running. To see the logs, run 'oc logs -f bc/conversion-flow-builder -n temperature-conversion'
      

      See the File(s) found log. Only the property file was recognized.

      We are expecting the whole directory to be uploaded to the server, not just the property file.

      This error is impacting a demo we are trying to build.

              tarkhand Tarun Khandelwal (Inactive)
              rhn-support-zanini Ricardo Zanini
              Karel Suta Karel Suta
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: