pytest_run.sh 493 B

123456
  1. #/bin/sh
  2. mkdir pytest_index
  3. /usr/local/bin/pytest master/cases -v --alluredir=$WORKSPACE/allure-results --html=$WORKSPACE/pytest_index/index.html
  4. curl -X POST -H "Content-Type: application/json" \
  5. -d '{"msg_type":"text","content":{"text":"测试结果: https://jenkins-on.yishihui.com/job/%E6%8E%A5%E5%8F%A3%E7%9B%91%E6%8E%A7%E8%87%AA%E5%8A%A8%E5%AE%9A%E6%97%B6%E8%BF%90%E8%A1%8C/allure/"}}' \
  6. https://open.feishu.cn/open-apis/bot/v2/hook/328be50b-624c-4ff9-844c-b90c7cf0acb8