qdyxmas's Room

Done is better than perfect...

gitlab更新集成测试结果信息

import requests


url = "https://gitlab.com/api/v4/projects/12203068/statuses/d851146c6f0199ec8f008f7e06a11bd625ace826"
headers = {"PRIVATE-TOKEN":"W2nduPyTaQEzyXxpQ72W"}
data = {
      "state": "success",
      "target_url": "http://xkooltest.3322.org:9191/report",
      "description": "{Pass:100,Fail:100,Error:100,Skip:100}",
      "context": "Unit Test Result"
    }
req = requests.post(url,json=data,headers=headers)
print(req.content)

标签 

1 评论

  1. CharlesVex
    /回复

    “I haven’t seen you in these parts,” the barkeep said, sidling settled to where I sat. “Name’s Bao.” He stated it exuberantly, as if low-down of his exploits were shared aside settlers around many a verve in Aeternum. He waved to a unanimated tun beside us, and I returned his gesture with a nod. He filled a telescope and slid it to me across the stained red wood of the bench in the vanguard continuing. “As a betting man, I’d be assenting to wager a adequate speck of enrich oneself you’re in Ebonscale Reach in search more than the drink and sights,” he said, eyes glancing from the sword sheathed on my hip to the capitulate slung across my back. http://www.google.com.co/url?q=https://renewworld.ru/new-world-kak-popast-na-alfa-i-beta-testy/

评论