You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by pn...@apache.org on 2022/03/18 11:16:17 UTC
[flink-benchmarks] 02/02: [hotfix] Move regression-check script to versioned jenkinsfile
This is an automated email from the ASF dual-hosted git repository.
pnowojski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink-benchmarks.git
commit 9559695a17776a72dde8c6a51ea77d182d97d25d
Author: Piotr Nowojski <pi...@gmail.com>
AuthorDate: Fri Mar 18 09:42:12 2022 +0100
[hotfix] Move regression-check script to versioned jenkinsfile
---
jenkinsfiles/regression-check.jenkinsfile | 43 +++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/jenkinsfiles/regression-check.jenkinsfile b/jenkinsfiles/regression-check.jenkinsfile
new file mode 100644
index 0000000..9299d6f
--- /dev/null
+++ b/jenkinsfiles/regression-check.jenkinsfile
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+timestamps {
+ try {
+ timeout(time: 3, unit: 'HOURS') { // includes waiting for a machine
+ node('Hetzner') {
+ dir('flink-benchmarks') {
+ git url: 'https://github.com/apache/flink-benchmarks.git', branch: 'master'
+ sh './regression_report.py > regression-report'
+ def alerts = readFile "regression-report"
+ if (alerts) {
+ slackSend (message: "Performance regression\n$alerts", channel: "#flink-dev-benchmarks")
+ }
+ }
+ }
+ }
+ }
+ catch (org.jenkinsci.plugins.workflow.steps.FlowInterruptedException err) {
+ slackSend (
+ channel: "#flink-dev-benchmarks",
+ message: "Build interrupted ${env.BUILD_NUMBER} of ${env.JOB_NAME} (<${env.BUILD_URL}|Open>): $err"
+ )
+ }
+ catch (err) {
+ slackSend (message: "Failed build ${env.BUILD_NUMBER} of ${env.JOB_NAME} (<${env.BUILD_URL}|Open>): $err", channel: "#flink-dev-benchmarks")
+ throw err
+ }
+}