[INTPAK-210] Add ability to manually specify RPM package version number Created: 05/Oct/18  Updated: 09/Oct/18  Resolved: 09/Oct/18

Status: Resolved
Project: integration-packaging
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: High
Reporter: Daniel Farrell Assignee: Daniel Farrell
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

While trying to package the Fluorine Managed Release Common Distribution as an RPM, I'm hitting an error because I had previously built the non-MR Fluorine release to the CentOS CBS. This is not a big problem, it's what the package version number after the minus is supposed to be used for. However, need to expose manually setting that version number, likely both in Int/Pack build logic and related Builder job logic.

 

cbs build nfv7-opendaylight-9-el7 opendaylight-9.0.0-1.el7.src.rpm
Uploading srpm: opendaylight-9.0.0-1.el7.src.rpm
[====================================] 100% 00:09:33 296.53 MiB 529.59 KiB/sec
Created task: 570813
Task info: https://cbs.centos.org/koji/taskinfo?taskID=570813
Watching tasks (this may be safely interrupted)...
570813 build (nfv7-opendaylight-9-el7, opendaylight-9.0.0-1.el7.src.rpm): free
570813 build (nfv7-opendaylight-9-el7, opendaylight-9.0.0-1.el7.src.rpm): free -> FAILED: GenericError: Build already exists (id=24119, state=COMPLETE): {'name': 'opendaylight', 'task_id': 570813, 'extra': None, 'pkg_id': 755, 'epoch': None, 'completion_time': None, 'state': 0, 'version': '9.0.0', 'source': None, 'volume_id': 0, 'owner': 60, 'release': '1.el7', 'start_time': 'NOW'}
0 free 0 open 0 done 1 failed

570813 build (nfv7-opendaylight-9-el7, opendaylight-9.0.0-1.el7.src.rpm) failed



 Comments   
Comment by Daniel Farrell [ 06/Oct/18 ]

Heh, already had a TODO in the code for this.

https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob;f=packages/lib.py;h=cfbf0bd2346029be229955693331692f0dfd495d;hb=refs/heads/master#l103

Generated at Wed Feb 07 20:03:55 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.