You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by fa...@apache.org on 2024/06/24 09:01:11 UTC
(flink-kubernetes-operator) branch main updated: [FLINK-35662] Use maven batch mode in CI workflows
This is an automated email from the ASF dual-hosted git repository.
fanrui pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new 2b78ea31 [FLINK-35662] Use maven batch mode in CI workflows
2b78ea31 is described below
commit 2b78ea315cd6ea261cb92ffab80e3d62481c96a0
Author: Ferenc Csaky <fe...@pm.me>
AuthorDate: Thu Jun 20 15:25:03 2024 +0200
[FLINK-35662] Use maven batch mode in CI workflows
---
.github/workflows/ci.yml | 8 ++++----
.github/workflows/publish_snapshot.yml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f7d71b40..3c4e979f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -47,7 +47,7 @@ jobs:
${{ runner.os }}-maven-
- name: Build with Maven
run: |
- set -o pipefail; mvn clean install javadoc:javadoc -Pgenerate-docs | tee ./mvn.log; set +o pipefail
+ set -o pipefail; mvn -B clean install javadoc:javadoc -Pgenerate-docs | tee ./mvn.log; set +o pipefail
if [[ $(cat ./mvn.log | grep -E -v '(flink-runtime-.*.jar, flink-kubernetes-operator-.*.jar)|(flink-kubernetes-operator-.*.jar, flink-runtime-.*.jar) define 3 overlapping classes' | grep -E -v '(flink-runtime-.*.jar, flink-autoscaler-.*.jar)|(flink-autoscaler-.*.jar, flink-runtime-.*.jar) define 1|2 overlapping classes' | grep -c "overlapping classes" -) -gt 0 ]];then
echo "Found overlapping classes: "
cat ./mvn.log | grep "overlapping classes"
@@ -63,17 +63,17 @@ jobs:
- name: Tests in flink-kubernetes-operator
run: |
cd flink-kubernetes-operator
- mvn verify -Dit.skip=false
+ mvn -B verify -Dit.skip=false
cd ..
- name: Tests in flink-kubernetes-webhook
run: |
cd flink-kubernetes-webhook
- mvn verify -Dit.skip=false
+ mvn -B verify -Dit.skip=false
cd ..
- name: Tests in flink-autoscaler-plugin-jdbc
run: |
cd flink-autoscaler-plugin-jdbc
- mvn verify -Dit.skip=false
+ mvn -B verify -Dit.skip=false
cd ..
e2e_ci:
runs-on: ubuntu-latest
diff --git a/.github/workflows/publish_snapshot.yml b/.github/workflows/publish_snapshot.yml
index 5fce9fd7..bbdc14fa 100644
--- a/.github/workflows/publish_snapshot.yml
+++ b/.github/workflows/publish_snapshot.yml
@@ -54,6 +54,6 @@ jobs:
echo "<password>$ASF_PASSWORD</password>" >> $tmp_settings
echo "</server></servers></settings>" >> $tmp_settings
- mvn --settings $tmp_settings clean deploy -Dgpg.skip -Drat.skip -DskipTests -Papache-release
+ mvn -B --settings $tmp_settings clean deploy -Dgpg.skip -Drat.skip -DskipTests -Papache-release
rm $tmp_settings