# Pipeline 通知
在Pipeline执行过程中,如果您需要及时通知用户当前执行的状态,您可以使用sendNotification函数。
var pipeline={
stages:{
deploy:{
steps: {
compile(){
ret = $.sh('mvn clean install -Dmaven.test.skip=true');
if(ret==0){
$.print('编译完成');
$.sendNotification('liaoyanlong','系统检测完成,待发布线上');
}
}
}
}
}
}
如果 cornerstone 登录用户绑定了微信账号,此时微信端同样会接收到消息通知