-
Type: Improvement
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 5.9.3
-
Fix Version/s: QualifiedToSchedule
-
Component/s: Infrastructure
When using "auto" for the release version, the release script parses the pom file XML, and this parsing will fail in case the "project" tag is missing its namespaces, for instance.
In that case, the error is:
13:51:24 $> git checkout --track -b 5.7.1 origin/5.7.1 -q 13:51:24 Branch 5.7.1 set up to track local ref refs/remotes/origin/5.7.1. 13:51:24 13:51:24 Traceback (most recent call last): 13:51:24 File "../release.py", line 859, in <module> 13:51:24 main() 13:51:24 File "../release.py", line 821, in main 13:51:24 options.msg_commit, options.msg_tag) 13:51:24 File "../release.py", line 172, in __init__ 13:51:24 self.set_snapshot() 13:51:24 File "../release.py", line 248, in set_snapshot 13:51:24 self.snapshot = version_elem.text 13:51:24 AttributeError: 'NoneType' object has no attribute 'text'
See http://qa.nuxeo.org/jenkins/job/IT-release-on-demand-addon/222/console
(fixed by https://github.com/nuxeo/nuxeo-segment.io-connector/commit/b0425fa84cc00ee389652b4b877a4d8a9649fe56)
This error should be more explicit to guide developers when trying to figure out the issue