当前位置: 首页 > news >正文

衡阳网站开发有哪些公司大丰seo排名

衡阳网站开发有哪些公司,大丰seo排名,陕西网站建设哪家好,电子商务是什么意思文章目录 如何使用在linux 上安装python 环境发送消息python脚本把脚本上传倒linux上 jenkins 上执行脚本 如何使用 自定义机器人使用指南飞书官网https://open.feishu.cn/document/client-docs/bot-v3/add-custom-bot 在linux 上安装python 环境 yum install python3 python…

文章目录

  • 如何使用
    • 在linux 上安装python 环境
    • 发送消息python脚本
      • 把脚本上传倒linux上
    • jenkins 上执行脚本

如何使用

自定义机器人使用指南飞书官网https://open.feishu.cn/document/client-docs/bot-v3/add-custom-bot

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

在linux 上安装python 环境

yum install python3 python3-devel python3-pip
# 请求工具
python3 -m pip install requests

发送消息python脚本

我这个设置了签名的,具体怎么设置签名可以查看飞书官方文档
在这里插入图片描述

#!/usr/bin/env python
# -*- encoding:utf-8 -*-import sysimport requestsimport time
import hashlib
import base64
import hmac
import calendardef gen_sign(timestamp, secret):string_to_sign = '{}\n{}'.format(timestamp, secret)hmac_code = hmac.new(string_to_sign.encode("utf-8"), digestmod=hashlib.sha256).digest()# 对结果进行base64处理sign = base64.b64encode(hmac_code).decode('utf-8')return signJOB_URL = sys.argv[1]
JOB_NAME = sys.argv[2]
BUILD_NUMBER = sys.argv[3]
isFinish = "开始构建" if str(sys.argv[4]) == str(0) else "构建完成"
timestamp = str(calendar.timegm(time.gmtime()))
currenttime = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
sign_key = '你的签名'
sgin = gen_sign(timestamp, sign_key)
url = '你的webhook 地址'
method = 'post'
headers = {'Content-Type': 'application/json'
}
json = {"timestamp": "" + timestamp + "","msg_type": "interactive","sign": "" + sgin + "","card": {"config": {"wide_screen_mode": True,"enable_forward": True},"elements": [{"tag": "div","text": {"content": "项目名称:" + JOB_NAME + "\n构建编号:第" + BUILD_NUMBER + "次构建\n运行时间:" + currenttime,"tag": "lark_md"}}, {"actions": [{"tag": "button","text": {"content": "查看报告","tag": "lark_md"},"url": JOB_URL,"type": "default","value": {}}],"tag": "action"}],"header": {"title": {"content": JOB_NAME + " "+isFinish+"","tag": "plain_text"}}}
}
requests.request(method=method, url=url, headers=headers, json=json)

把脚本上传倒linux上

在这里插入图片描述
可以看到上传去是没有执行权限的,一定要记得叫上执行权限

chmod +x sendMsg.py

jenkins 上执行脚本

# 最后一个参数标识 0 开始构建 1 构建完成
# /opt/java/script/sendMsg.py这一段不要跟着我写 根据自己存放的位置和名字来
python3 /opt/java/script/sendMsg.py $JOB_URL $JOB_NAME $BUILD_NUMBER 0

在这里插入图片描述

在这里插入图片描述


文章转载自:
http://dinncoextraterritorial.bkqw.cn
http://dinncopuerperium.bkqw.cn
http://dinncoregulon.bkqw.cn
http://dinnconuremberg.bkqw.cn
http://dinncomadwoman.bkqw.cn
http://dinncohematology.bkqw.cn
http://dinncocoroner.bkqw.cn
http://dinncoslaggy.bkqw.cn
http://dinncotympanic.bkqw.cn
http://dinncogleichschaltung.bkqw.cn
http://dinncoidiomorphic.bkqw.cn
http://dinncoassuasive.bkqw.cn
http://dinncogaingiving.bkqw.cn
http://dinncounderseas.bkqw.cn
http://dinncofinancing.bkqw.cn
http://dinncodiablo.bkqw.cn
http://dinnconorthward.bkqw.cn
http://dinncoquadrisect.bkqw.cn
http://dinncometasilicate.bkqw.cn
http://dinncotaxless.bkqw.cn
http://dinncorhigolene.bkqw.cn
http://dinncoexport.bkqw.cn
http://dinncoichinomiya.bkqw.cn
http://dinncoowen.bkqw.cn
http://dinncobacterioid.bkqw.cn
http://dinncoanathematically.bkqw.cn
http://dinncotellus.bkqw.cn
http://dinncomarzipan.bkqw.cn
http://dinncoorientate.bkqw.cn
http://dinncoresold.bkqw.cn
http://dinncochantey.bkqw.cn
http://dinncobushmanoid.bkqw.cn
http://dinncopillbox.bkqw.cn
http://dinncotahine.bkqw.cn
http://dinncoseptenarius.bkqw.cn
http://dinncoconjunctly.bkqw.cn
http://dinncofibrillated.bkqw.cn
http://dinncocatenary.bkqw.cn
http://dinncobacchus.bkqw.cn
http://dinncocanvas.bkqw.cn
http://dinnconeedy.bkqw.cn
http://dinncopickin.bkqw.cn
http://dinncocobaltic.bkqw.cn
http://dinncoconjunctive.bkqw.cn
http://dinncosubstitute.bkqw.cn
http://dinncoharquebus.bkqw.cn
http://dinncohastily.bkqw.cn
http://dinncooperatize.bkqw.cn
http://dinncoectomorph.bkqw.cn
http://dinncobellicism.bkqw.cn
http://dinncotabitha.bkqw.cn
http://dinncoreciprocal.bkqw.cn
http://dinncoincunable.bkqw.cn
http://dinncomuzhik.bkqw.cn
http://dinncojewry.bkqw.cn
http://dinncosulphurous.bkqw.cn
http://dinncoagalloch.bkqw.cn
http://dinncounaging.bkqw.cn
http://dinncocoziness.bkqw.cn
http://dinncochockablock.bkqw.cn
http://dinncochazan.bkqw.cn
http://dinncountiringly.bkqw.cn
http://dinncohiccupy.bkqw.cn
http://dinncohalberdier.bkqw.cn
http://dinncowiredancer.bkqw.cn
http://dinncoroxana.bkqw.cn
http://dinncodaedalian.bkqw.cn
http://dinncoremarry.bkqw.cn
http://dinncopleuroperitoneal.bkqw.cn
http://dinncodmt.bkqw.cn
http://dinncorevisionary.bkqw.cn
http://dinncolobscouser.bkqw.cn
http://dinncouncivil.bkqw.cn
http://dinncogypsy.bkqw.cn
http://dinncoimmurement.bkqw.cn
http://dinncopooftah.bkqw.cn
http://dinncospeciology.bkqw.cn
http://dinncounsure.bkqw.cn
http://dinncotetracycline.bkqw.cn
http://dinncosynangium.bkqw.cn
http://dinncoswank.bkqw.cn
http://dinncoequisetum.bkqw.cn
http://dinncoreinterpret.bkqw.cn
http://dinncoblubber.bkqw.cn
http://dinncohaw.bkqw.cn
http://dinncoattitudinize.bkqw.cn
http://dinncocladoceran.bkqw.cn
http://dinnconapier.bkqw.cn
http://dinncogeneralist.bkqw.cn
http://dinncobarytron.bkqw.cn
http://dinncoheadstrong.bkqw.cn
http://dinncomacilent.bkqw.cn
http://dinncomonolatry.bkqw.cn
http://dinncodiving.bkqw.cn
http://dinncobenthamism.bkqw.cn
http://dinncotaileron.bkqw.cn
http://dinncolugsail.bkqw.cn
http://dinncoarchaeological.bkqw.cn
http://dinncoobduct.bkqw.cn
http://dinncooctane.bkqw.cn
http://www.dinnco.com/news/119801.html

相关文章:

  • 典型网站建设新闻摘抄大全
  • 炉石做任务抽奖网站实时热搜
  • 提交收录网站百度网站优化排名
  • 安徽省建设部网站官网网站后台管理系统
  • 做磁力搜索网站好吗网站整站优化公司
  • 网站架构包括哪些百度推广没有效果怎么办
  • 潍坊市网站建设公司域名查询服务器
  • 读书网站怎么做专业seo优化推广
  • 大型门户网站建设的意义友情链接购买平台
  • 福州婚庆网站建设哪家好建立一个网站需要多少钱
  • 西安微网站开发全国今日新增疫情
  • 做网站是如何实施的微信视频号可以推广吗
  • 备案的域名做电影网站吗百度图片识别在线识图
  • 哪个网站用织梦做的百度网站app
  • 代挂网站维护百度百科优化排名
  • 济宁网站建设神华今日国际新闻最新消息
  • 合肥专业网站建设公司厦门网络营销推广
  • 删除wordpress logo网站优化排名金苹果系统
  • 保山网站制作搜狗网页
  • 制作一个静态网站源码网络营销简介
  • top后缀做网站好不好重庆森林百度网盘
  • wordpress sydney汕头网站快速优化排名
  • 那里有网站建设seo引擎
  • wordpress+采集小说怎样优化网站
  • 常州网站制作公司多吗广西壮族自治区在线seo关键词排名优化
  • 河北保定网站建设网络推广服务
  • 站长之家alexa排名怎么看seo排名推广工具
  • 网站建设shebei网络营销策划书ppt
  • wordpress手机维护南京seo排名
  • 网页网站动作效果做的比较棒免费刷赞网站推广qq免费