Source Control Evaluation REST API - Sonatype Lifecycle & Repository Firewall - Sonatype Community
Source Control Evaluation REST API
post by douglas.silva on Jun 17, 2022
Douglas Fernando da Silva
douglas.silva
I’ve made a scripting to automate my process of import application from GitLab to Lifecycle using API.
Tha whole process has worked , I’ve configured via API the applications with their SCM, but when I’ve used API “Source Control Evaluation REST API”, I’ve received an error that I didn’t have a report with data. By the way, I took the same application and I evaluated by a binary, and configurated the SCM in Organizations. And both, I got a report data, but when I’ve configurated the SCM in application or via API, I didn’t had data report.
Had someone has a similar issues?
post by mfrost on Jun 23, 2022
Maura Frost
mfrost
Sonatypers
I wanted to make sure you knew there was documentation for the Source Control Evaluation REST API. I’m not sure if it will answer your question but it might be a good place to start - you can find it here: Source Control Evaluation REST API - v2
post by douglas.silva on Jul 25, 2022
Douglas Fernando da Silva
douglas.silva
Thank you @mfrost !
I resolved, actually I’ve mistaken the Body when create a SCM in POST API, I was passing a parameter that doesn’t exist, and the other error occured
I’ve just passed the simples parameters and these worked.
post by mfrost on Jul 25, 2022
Maura Frost
mfrost
Sonatypers
Glad it was resolved, @douglas.silva!