LINK 类型的消息
groovy
pipeline {
agent any
stages {
stage('link'){
steps {
echo '测试 LINK 消息...'
}
post {
success {
dingtalk (
robot: '58f10219-2cd3-4de7-a1af-f85f4010c10a',
type: 'LINK',
title: '你有新的消息,请注意查收',
text: [
'测试链接类型的消息',
'分行显示,哈哈哈哈'
],
messageUrl: 'https://jenkinsci.github.io/dingtalk-plugin/',
picUrl: 'https://raw.githubusercontent.com/jenkinsci/dingtalk-plugin/main/jenkins-logo.png'
)
}
}
}
}
}查看结果

