2014-02-25 66 views
1

我在Linux中運行Jenkins,並且我想在構建失敗時引發QC中的缺陷。最簡單的方法是什麼?當構建失敗時在Jenkins中創建QC中的缺陷

+0

[這](http://antagonisticpleiotropy.blogspot.ca/2014/02/jenkins-hps-alm-quality-找到center-qc-rest.html)可能就是你正在尋找的東西。 –

回答

1

QC有一個REST API,您可以使用它,實際上可以與通過HTTP進行通信的任何內容

curl -b qc_cookies -c qc_cookies -u <USERNAME:PASSWORD> http://<QC_SERVER:PORT>/qcbin/authentication-point/authenticate 

curl -b qc_cookies -c qc_cookies -H "Content-Type: application/xml" -X POST -d @<QC_DEFECT_PAYLOAD.xml> http://<QC_SERVER:PORT>/qcbin/rest/domains/<DOMAIN>/projects/<PROJECT>/defects 

curl -b qc_cookies -c qc_cookies http://<QC_SERVER:PORT>/qcbin/authentication-point/logout 

如何與詹金斯使用它的更多細節可以在http://antagonisticpleiotropy.blogspot.com.au/2014/02/jenkins-hps-alm-quality-center-qc-rest.html

+0

鏈接只有答案是不鼓勵的。在您的帖子中編輯和發佈相關內容 – Raghunandan