REST API for getting project last analysis date?

前端 未结 2 870
遇见更好的自我
遇见更好的自我 2021-01-05 03:15

How do I get a project\'s last analysis time (the one you can see in the dashboard) with the REST API of SonarQube?

I am working with SonarQube 4.5.6, but if it\'s o

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-05 03:56

    You can use the Resources API : https://nemo.sonarqube.org/api/resources/index?metrics=date&format=json and look at the 'date' field to get the last analysis time.

提交回复
热议问题