File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ build :
2+ stage : test
3+ script :
4+ - mvn clean org.jacoco:jacoco-maven-plugin:0.7.8:prepare-agent package -Dmaven.test.failure.ignore=true -q
5+ - mvn sonar:sonar -Dsonar.projectKey="dt-insight-engine/flinkStreamSQL" -Dsonar.host.url=http://172.16.100.198:9000 -Dsonar.jdbc.url=jdbc:postgresql://172.16.100.198:5432/sonar -Dsonar.java.binaries=target/sonar
6+ - sh ci/sonar_notify.sh
7+ only :
8+ - 1.8_dev
9+ tags :
10+ - dt-insight-engine
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # 参考钉钉文档 https://open-doc.dingtalk.com/microapp/serverapi2/qf2nxq
3+ sonarreport=$( curl -s http://172.16.100.198:8082/? projectname=dt-insight-engine/flinkStreamSQL)
4+ curl -s " https://oapi.dingtalk.com/robot/send?access_token=71555061297a53d3ac922a6f4d94285d8e23bccdca0c00b4dc6df0a2d49da724" \
5+ -H " Content-Type: application/json" \
6+ -d " {
7+ \" msgtype\" : \" markdown\" ,
8+ \" markdown\" : {
9+ \" title\" :\" sonar代码质量\" ,
10+ \" text\" : \" ## sonar代码质量报告: \n
11+ > [sonar地址](http://172.16.100.198:9000/dashboard?id=dt-insight-engine/flinkStreamSQL) \n
12+ > ${sonarreport} \n\"
13+ }
14+ }"
You can’t perform that action at this time.
0 commit comments