Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-12380

Build failure during release for 25.1.0 in CircleCI

    XMLWordPrintable

    Details

    • Sprint:
      Horizon 2019 - October 30th

      Description

      During release 25.1.0 we got build failures in CI/CD pipeline with the error Python is missing.

      Debugged it and here are my findings:

      Python is not anymore provided on CentOS 8 by default and is not available in our build image when we updated to CentOS 8.
      In python scripts you have to set the shebang to python2 or python3 explicitly, just python doesn't work anymore. This issue is described here: https://developers.redhat.com/blog/2018/11/14/python-in-rhel-8/

      Q: Why haven't we seen this before and it fails on release?
      A: This python script only runs on master when we do a release. All other branches don't need this python script.

      TL;DR
      To set the tag the same as in the version number, we run the version-tags script. It parses the pom.xml with Python to fetch the version number. It is executed only for the master branch. On any other branch, we just set the tag fixed with "bleeding" for develop or use the CircleCI branch name from the environment variable.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                indigo Ronny Trommer
                Reporter:
                indigo Ronny Trommer
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: