2 # Copyright (c) 2023 PANTHEON.tech s.r.o. All rights reserved.
3 # This program and the accompanying materials are available under the
4 # terms of the Eclipse Public License v1.0 which accompanies this
5 # distribution, and is available at
6 # http://www.eclipse.org/legal/epl-v10.html
9 # Bumping MRI versions tool
11 This program is making versions changes in pom.xml files. For example 10.0.1
12 to 10.0.2. The change will apply if groupId.text contain "org.opendaylight".
13 This program is also making changes in feature.xml files. For example
25 git clone "https://git.opendaylight.org/gerrit/releng/builder"
28 git clone "ssh://{USERNAME}@git.opendaylight.org:29418/releng/builder"
31 cd ~/builder/scripts/bump_mri_versions
33 INSTALL VIRTUAL ENVIROMENT PACKAGE:
34 sudo apt install python3-virtualenv
36 CREATE NEW VIRTUAL ENVIROMENT:
39 ACTIVATE VIRTUAL ENVIROMENT:
43 pip install requests bs4 lxml
45 SET FOLDER FOR TESTING:
46 clone repo for version updating in ~/builder/scripts/bump_mri_versions/repos or
47 update "bumping_dir" variable in python_lib.py file
56 All changes will be output to the console.
60 XML FILE: repos/aaa/features/odl-aaa-api/pom.xml
61 ('groupId:', 'org.opendaylight.mdsal', 'ARTIFACT ID:', 'odl-mdsal-binding-base', 'VERSION:', '11.0.1', 'NEW VERSION:', '11.0.2')
62 ****************************************************************************************************
64 XML FILE: repos/ovsdb/southbound/southbound-features/odl-ovsdb-southbound-impl/src/main/feature/feature.xml
65 ('path:', PosixPath('repos/ovsdb/southbound/southbound-features/odl-ovsdb-southbound-impl/src/main/feature/feature.xml'), 'VERSION:', '[4,5)', 'NEW VERSION:', '[5,6)')
66 ****************************************************************************************************