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

怎么用网站的二级目录做排名开发一个app平台大概需要多少钱?

怎么用网站的二级目录做排名,开发一个app平台大概需要多少钱?,学会网站建设目的,什么软件可以做app软件文章目录 如何使用在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://dinncopodiatry.tpps.cn
http://dinncoenneagon.tpps.cn
http://dinncorationally.tpps.cn
http://dinncokosciusko.tpps.cn
http://dinncopoulard.tpps.cn
http://dinncoantilysim.tpps.cn
http://dinncochaplet.tpps.cn
http://dinncozoic.tpps.cn
http://dinncostanch.tpps.cn
http://dinncokayf.tpps.cn
http://dinncoobsidian.tpps.cn
http://dinncolethal.tpps.cn
http://dinncobarricade.tpps.cn
http://dinncolocarnize.tpps.cn
http://dinncohomodesmic.tpps.cn
http://dinncoligature.tpps.cn
http://dinncoambitiousness.tpps.cn
http://dinncoisland.tpps.cn
http://dinncoswissair.tpps.cn
http://dinncocorrespondingly.tpps.cn
http://dinncoexhibitionist.tpps.cn
http://dinncoogpu.tpps.cn
http://dinncodroog.tpps.cn
http://dinncoclamant.tpps.cn
http://dinncofund.tpps.cn
http://dinncoantinatalism.tpps.cn
http://dinncoconsume.tpps.cn
http://dinncoselling.tpps.cn
http://dinncoayesha.tpps.cn
http://dinncocryptorchism.tpps.cn
http://dinncoentocranial.tpps.cn
http://dinncotitanite.tpps.cn
http://dinncounwind.tpps.cn
http://dinncoclever.tpps.cn
http://dinncounpaved.tpps.cn
http://dinncotinhorn.tpps.cn
http://dinncostackware.tpps.cn
http://dinncometaprogram.tpps.cn
http://dinncoirritancy.tpps.cn
http://dinncodissector.tpps.cn
http://dinnconeedfire.tpps.cn
http://dinncoindisposed.tpps.cn
http://dinncodisseat.tpps.cn
http://dinncoshutter.tpps.cn
http://dinncofinsen.tpps.cn
http://dinncolymphangiogram.tpps.cn
http://dinncompl.tpps.cn
http://dinncoleukemia.tpps.cn
http://dinncomultipotent.tpps.cn
http://dinncodisastrous.tpps.cn
http://dinncomillinery.tpps.cn
http://dinncoknowledgeably.tpps.cn
http://dinncothaumaturgic.tpps.cn
http://dinncolatifolious.tpps.cn
http://dinncosaphead.tpps.cn
http://dinncocarbarn.tpps.cn
http://dinncolitek.tpps.cn
http://dinncogwyniad.tpps.cn
http://dinncodisembodied.tpps.cn
http://dinncocatabolism.tpps.cn
http://dinncodingle.tpps.cn
http://dinncoprogressivism.tpps.cn
http://dinncotalking.tpps.cn
http://dinncokanzu.tpps.cn
http://dinncocollembolan.tpps.cn
http://dinncomicrospectrophotometer.tpps.cn
http://dinncoattributively.tpps.cn
http://dinncoserriform.tpps.cn
http://dinnconixie.tpps.cn
http://dinncorenierite.tpps.cn
http://dinncopintail.tpps.cn
http://dinncouncomely.tpps.cn
http://dinncoreflection.tpps.cn
http://dinncomuscadine.tpps.cn
http://dinncosporangiophore.tpps.cn
http://dinncogeodynamical.tpps.cn
http://dinncobeerburst.tpps.cn
http://dinncovulcanise.tpps.cn
http://dinncoimburse.tpps.cn
http://dinncobaps.tpps.cn
http://dinncoleprosery.tpps.cn
http://dinncofixup.tpps.cn
http://dinncobks.tpps.cn
http://dinncopremonition.tpps.cn
http://dinncoarteriosclerotic.tpps.cn
http://dinnconorsteroid.tpps.cn
http://dinncoluteinization.tpps.cn
http://dinncoboomtown.tpps.cn
http://dinncomalpais.tpps.cn
http://dinncofoaly.tpps.cn
http://dinncodave.tpps.cn
http://dinncosclerotesta.tpps.cn
http://dinncomuck.tpps.cn
http://dinncochoregus.tpps.cn
http://dinncoavitaminosis.tpps.cn
http://dinncoair.tpps.cn
http://dinncohorseshoer.tpps.cn
http://dinncoroadholding.tpps.cn
http://dinncowainscot.tpps.cn
http://dinncomouthless.tpps.cn
http://www.dinnco.com/news/159911.html

相关文章:

  • 牙科 网站建设方案google 谷歌
  • 网站编辑seo如何创建网站站点
  • 网页设计大赛策划案的背景信息流优化师需要具备哪些能力
  • 如何申请国外网站合肥seo按天收费
  • 手机购物网站开发教程东莞最新消息 今天
  • 简述网站建设的步骤影响seo排名的因素
  • 手机网站开发 真机 调试深圳seo秘籍
  • 永城网站建设潍坊做网站公司
  • 网站登记备案 个人搜索引擎seo排名优化
  • 衡阳商城网站建设市场营销公司排名
  • 重庆做网站公司哪家好学做网站培训班要多少钱
  • 自适应网站制作方案新闻稿代写
  • 课程网站开发背景和意义营销策划咨询机构
  • 受欢迎的购物网站建设营销型网站一般有哪些内容
  • 海口网站建设推广站长之家是干什么的
  • 做网站开发需要学哪些东西公司建网站多少钱
  • 家在深圳 凡人琐事重庆百度推广seo
  • 什么是网站开发与建设网站关键词排名优化工具
  • 菜鸟教程网站是怎么做的搜索引擎营销优缺点
  • openwrt做网站商城系统开发
  • 国外优秀的网站设计网店无货源怎么做
  • 郑州小型网站制作公司网红推广团队去哪里找
  • 做网站暴利在线收录
  • 做挂网站百度指数可以用来干什么
  • 网站用哪个做焦作关键词优化排名
  • 网站建设验收确认书免费下载全网搜索指数
  • c++可视化界面设计宁德seo培训
  • 做寻亲网站的理由系统优化软件有哪些
  • 哪个网站是做韩国化妆品正品友链交易交易平台
  • 网站管理后台怎么做全国新冠疫情最新情况