You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by el...@apache.org on 2020/06/04 12:01:31 UTC

[hadoop-ozone] 13/18: use cache

This is an automated email from the ASF dual-hosted git repository.

elek pushed a commit to branch acceptance-coverage
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git

commit 6960836f1f1f15c5bf2c3f7e033b9de4925e7149
Author: Elek Márton <el...@apache.org>
AuthorDate: Wed Jun 3 14:17:18 2020 +0200

    use cache
---
 .github/workflows/post-commit.yml | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/post-commit.yml b/.github/workflows/post-commit.yml
index 220542e..436e105 100644
--- a/.github/workflows/post-commit.yml
+++ b/.github/workflows/post-commit.yml
@@ -20,9 +20,11 @@ jobs:
     name: acceptance
     runs-on: ubuntu-18.04
     steps:
+    with:
+        - uses: actions/cache@v2
+          path: ~/.m2/repository
+          key: maven-dependencies
         - run: |
-            set -x
-            echo $GITHUB_REPOSITORY
             sudo chmod 777 /mnt
             git clone https://github.com/${GITHUB_REPOSITORY}.git /mnt/ozone
             cd /mnt/ozone
@@ -37,3 +39,8 @@ jobs:
           with:
             name: acceptance
             path: /mnt/ozone/target/acceptance
+        - runs: |
+            #Never cache local artifacts
+            rm -rf ~/.m2/repository/org/apache/hadoop/hdds
+            rm -rf ~/.m2/repository/org/apache/hadoop/ozone
+          if: always()
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-commits-help@hadoop.apache.org