Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-1757

optaplanner-website: rake script: when build fails, publish should not happen

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 7.32.0.Final
    • None
    • None
    • None
    • 2019 Week 50-52 (from Dec 9), 2020 Week 01-03 (from Dec 30)
    • NEW
    • NEW

      Motivation, a failed build of the website shouldn't be published, as that breaks the website.

      Build failures are probably being eaten here in the rake.rb script:

      desc "Build the site"
      task :build => :check do
        system("echo Building...")
        system "bundle exec awestruct -P production --force"
      end
      

      Do try it out locally, by temporarily commenting out the actual publish, so it only prints to the console if publish is called. Then introduce an error in the website (for example use an unexisting userId) to verify that publish isn't called than (but is called if it builds fine).

      Afterwards, do the same changes on drools-website and jbpm-website repo's or talk to mbiarnes@redhat.com

              cchianel Christopher Chianelli (Inactive)
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: