Commit e793a186 by 张思远

a

parent 991f63d1
Pipeline #186 canceled with stage
build-job: stages:
stage: build - test
script: api_test:
- cd R:\Website\zsy_dev.cysq.com\webhook-test-zsy
- git pull
tags:
- test
test-job1:
stage: test stage: test
image: node:lts-alpine
script: script:
- cd R:\Website\zsy_dev.cysq.com\webhook-test-zsy - npm install -g stepci
- git pull - setpci run workflow.yml
tags: tags:
- test - sf
deploy-prod: # build-job:
stage: deploy # stage: build
script: # script:
- cd R:\Website\zsy_dev.cysq.com\webhook-test-zsy # - cd R:\Website\zsy_dev.cysq.com\webhook-test-zsy
- git pull # - git pull
tags: # tags:
- test # - 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