Commit e793a186 by 张思远

a

parent 991f63d1
Pipeline #186 canceled with stage
build-job:
stage: build
script:
- cd R:\Website\zsy_dev.cysq.com\webhook-test-zsy
- git pull
tags:
stages:
- test
test-job1:
api_test:
stage: test
image: node:lts-alpine
script:
- cd R:\Website\zsy_dev.cysq.com\webhook-test-zsy
- git pull
- npm install -g stepci
- setpci run workflow.yml
tags:
- test
- sf
deploy-prod:
stage: deploy
script:
- cd R:\Website\zsy_dev.cysq.com\webhook-test-zsy
- git pull
tags:
- test
# build-job:
# stage: build
# script:
# - cd R:\Website\zsy_dev.cysq.com\webhook-test-zsy
# - git pull
# tags:
# - test
# test-job1:
# stage: test
# script:
# - cd R:\Website\zsy_dev.cysq.com\webhook-test-zsy
# - git pull
# tags:
# - test
# deploy-prod:
# stage: deploy
# script:
# - cd R:\Website\zsy_dev.cysq.com\webhook-test-zsy
# - git pull
# tags:
# - test
version: "1.0"
name: gitlab ci/cd test feishuboot
env:
feishu_url: https://notify_test.cysq.com/feishu/feishubot.php
config:
http:
baseURL: https://notify_test.cysq.com/feishu/feishubot.php
tests:
feishu:
steps:
- id: text
http:
url: ${{env.feishu_url}}
method: POST
heasers:
Content-Type: application/json
body: |
{
"type": "text",
"content": {
"text": "test stepci"
},
"bot_url": "https://open.feishu.cn/open-apis/bot/v2/hook/d96f8dea-5557-44f4-8644-a22e51865b12"
}
check:
status: 200
headers:
Content-Type: application/json; charset=utf-8
json:
status: 200
msg: "发送成功"
- id: interactive
http:
url: /
method: POST
headers:
Content-Type: application/json
body: |
{
"type": "interactive",
"content": {
"template_id": "ctp_AA8KI3enztfi",
"env": "stepci 卡片test",
"user": "user",
"time": "time",
"detailUrl": "http://www.baidu.com",
"project_desc": "project_desc",
"project_homepage": "http://www.yahoo.com",
"project_name": "project_name",
"info": "info"
},
"bot_url": "https://open.feishu.cn/open-apis/bot/v2/hook/d96f8dea-5557-44f4-8644-a22e51865b12"
}
check:
status: 200
headers:
Content-Type: application/json; charset=utf-8
json:
status: 200
msg: "发送成功"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment