github.com/pingcap/ticdc@v0.0.0-20220526033649-485a10ef2652/scripts/jenkins_ci/cdc_ghpr_integration_test.groovy (about)

     1  def script_path = "go/src/github.com/pingcap/ticdc/scripts/jenkins_ci/integration_test_common.groovy"
     2  def common = load script_path
     3  
     4  catchError {
     5      common.prepare_binaries()
     6      common.tests("mysql", "${GO_TEST_SLAVE}")
     7      common.coverage()
     8      currentBuild.result = "SUCCESS"
     9  }
    10  
    11  stage('Summary') {
    12      def duration = ((System.currentTimeMillis() - currentBuild.startTimeInMillis) / 1000 / 60).setScale(2, BigDecimal.ROUND_HALF_UP)
    13      def slackmsg = "[#${ghprbPullId}: ${ghprbPullTitle}]" + "\n" +
    14      "${ghprbPullLink}" + "\n" +
    15      "${ghprbPullDescription}" + "\n" +
    16      "Integration Test Result: `${currentBuild.result}`" + "\n" +
    17      "Elapsed Time: `${duration} mins` " + "\n" +
    18      "${env.RUN_DISPLAY_URL}"
    19  
    20      if (currentBuild.result != "SUCCESS") {
    21          slackSend channel: '#jenkins-ci', color: 'danger', teamDomain: 'pingcap', tokenCredentialId: 'slack-pingcap-token', message: "${slackmsg}"
    22      }
    23  }