1 # Copyright (c) 2023 PANTHEON.tech s.r.o. All rights reserved.
3 # This program and the accompanying materials are made available under the
4 # terms of the Eclipse Public License v1.0 which accompanies this distribution,
5 # and is available at http://www.eclipse.org/legal/epl-v10.html
8 # Bumping MRI versions tool
9 This program is making versions changes in pom.xml files. For example 10.0.1 to 10.0.2
10 The change will aply only if groupId.text contain "org.opendaylight".
12 This program is also making changes in feature.xml files. For example [0.16,1) to [0.17,1)
17 *Prerequisite:* The followings are required for building test:
24 git clone "https://git.opendaylight.org/gerrit/releng/builder"
27 git clone "ssh://{USERNAME}@git.opendaylight.org:29418/releng/builder"
30 cd ~/builder/scripts/bump_mri_versions
32 INSTALL VIRTUAL ENVIROMENT PACKAGE:
33 sudo apt install python3-virtualenv
35 CREATE NEW VIRTUAL ENVIROMENT:
38 ACTIVATE VIRTUAL ENVIROMENT:
42 pip install requests bs4 lxml
44 SET FOLDER FOR TESTING:
45 clone repo for version updating in ~/builder/scripts/bump_mri_versions/repos or
46 update "bumping_dir" variable in python_lib.py file
56 Every change will be printed out 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 ****************************************************************************************************