2 Star 0 Fork 0

mirrors_OWASP/RiskAssessmentFramework

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.teleNotify.sh 843 Bytes
一键复制 编辑 原始数据 按行查看 历史
adeyosemanputra 提交于 2019-06-18 15:22 +08:00 . Update .teleNotify.sh
#!/bin/sh
# Get the token
BOT_URL="https://api.telegram.org/bot${TELEGRAM_TOKEN}/sendMessage"
# Set formatting
PARSE_MODE="Markdown"
# Check if all previous steps passed:
if [ $TRAVIS_TEST_RESULT -ne 0 ]; then
build_status=" ❌ Failed 👎"
else
build_status=" ✅ Succeeded 👍"
fi
# Send message function
send_msg () {
curl -s -X POST ${BOT_URL} -d chat_id=$TELEGRAM_CHAT_ID \
-d text="$1" -d parse_mode=${PARSE_MODE}
}
# Call send message with the message
send_msg "
\`----------------------------------------------------------------\`
Build *${build_status}!*
\`Repository 📦: ${TRAVIS_REPO_SLUG}\`
\`Branch 🏷: ${TRAVIS_BRANCH}\`
*Commit Msg 💭:*
_${TRAVIS_COMMIT_MESSAGE}_
[Job Log view here 👉](${TRAVIS_JOB_WEB_URL})
\`----------------------------------------------------------------\`
"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_OWASP/RiskAssessmentFramework.git
git@gitee.com:mirrors_OWASP/RiskAssessmentFramework.git
mirrors_OWASP
RiskAssessmentFramework
RiskAssessmentFramework
master

搜索帮助