-
Notifications
You must be signed in to change notification settings - Fork 13
Description
I currently have the task to synchronize projects' attachments between two SW360 instances.
In my specific case, certain projects including source attachments are uploaded into two different instances, but clearing results (e.g. reports and CLI files) are uploaded in only one of them. So the remaining bit for me would be to download those from instance A and upload it to instance B.
So my idea would be to add following two commands:
bom
UploadAttachments upload all attachments described in a BOM e.g. created by "project DownloadAttachments"
project
DownloadAttachments download all attachments (of certain types) and create a BOM listing them
This would require extending the BOM formats by some fields, probably something like
"externalReferences" : [
{
"type": "other",
"url": "file:///attachments/CLIXML_keyutils_1.6-6-debian-combined.tar.bz2_2019-10-10_10_02_52.xml",
"comment": "component license information (XML)"
}
]
Alternatively, I could also implement "project uploadattachments", but I think with the suggestion above, it could be used flexible for multiple use cases.
Together "project createbom", "bom map" and "bom createcomponents", I think we could even support complete project export/import use cases in the future like:
- sync projects between different SW360 instances
- archive projects from SW360 to other systems
- migrate projects between SW360 and other platforms
What do you think?