File tree Expand file tree Collapse file tree 2 files changed +26
-29
lines changed Expand file tree Collapse file tree 2 files changed +26
-29
lines changed Original file line number Diff line number Diff line change @@ -26,41 +26,61 @@ name: CI
26
26
27
27
on :
28
28
push :
29
- branches : [ "master" ]
30
29
pull_request :
31
30
branches : [ "master" ]
32
31
32
+ env :
33
+ MAVEN_OPTS : -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
34
+
33
35
jobs :
34
36
build-8 :
35
37
runs-on : ubuntu-latest
36
38
steps :
37
39
- uses : actions/checkout@v4
40
+ - name : Cache for maven dependencies
41
+ uses : actions/cache@v4
42
+ with :
43
+ path : |
44
+ ~/.m2/repository/*/*/*
45
+ !~/.m2/repository/org/apache/ranger
46
+ key : maven-repo-${{ hashFiles('**/pom.xml') }}
47
+ restore-keys : |
48
+ maven-repo-
38
49
- name : Set up JDK 8
39
50
uses : actions/setup-java@v4
40
51
with :
41
52
java-version : ' 8'
42
53
distribution : ' temurin'
43
- cache : maven
44
54
- name : build (8)
45
- run : mvn -T 8 clean install --no-transfer-progress -B -V
55
+ run : mvn -T 8 clean verify --no-transfer-progress -B -V
46
56
- name : Upload artifacts
47
57
uses : actions/upload-artifact@v4
48
58
with :
49
59
name : target-8
50
60
path : target/*
51
61
52
62
build-11 :
63
+ needs :
64
+ - build-8
53
65
runs-on : ubuntu-latest
54
66
steps :
55
67
- uses : actions/checkout@v4
68
+ - name : Cache for maven dependencies
69
+ uses : actions/cache/restore@v4
70
+ with :
71
+ path : |
72
+ ~/.m2/repository/*/*/*
73
+ !~/.m2/repository/org/apache/ranger
74
+ key : maven-repo-${{ hashFiles('**/pom.xml') }}
75
+ restore-keys : |
76
+ maven-repo-
56
77
- name : Set up JDK 11
57
78
uses : actions/setup-java@v4
58
79
with :
59
80
java-version : ' 11'
60
81
distribution : ' temurin'
61
- cache : maven
62
82
- name : build (11)
63
- run : mvn -T 8 clean install -pl '!knox-agent' --no-transfer-progress -B -V
83
+ run : mvn -T 8 clean verify -pl '!knox-agent' --no-transfer-progress -B -V
64
84
- name : Upload artifacts
65
85
uses : actions/upload-artifact@v4
66
86
with :
70
90
docker-build :
71
91
needs :
72
92
- build-8
73
- - build-11
74
93
runs-on : ubuntu-latest
75
94
steps :
76
95
- uses : actions/checkout@v4
85
104
cp version dev-support/ranger-docker/dist
86
105
87
106
- name : Cache downloaded archives
88
- uses : actions/cache@v3
107
+ uses : actions/cache@v4
89
108
with :
90
109
path : dev-support/ranger-docker/downloads
91
110
key : ${{ runner.os }}-ranger-downloads-${{ hashFiles('dev-support/ranger-docker/.env') }}
Original file line number Diff line number Diff line change 778
778
<url >https://issues.apache.org/jira/browse/ranger</url >
779
779
</issueManagement >
780
780
<repositories >
781
- <repository >
782
- <releases >
783
- <enabled >false</enabled >
784
- </releases >
785
- <snapshots >
786
- <enabled >true</enabled >
787
- </snapshots >
788
- <id >apache.snapshots.https</id >
789
- <name >Apache Development Snapshot Repository</name >
790
- <url >https://repository.apache.org/content/repositories/snapshots</url >
791
- </repository >
792
- <repository >
793
- <releases >
794
- <enabled >true</enabled >
795
- </releases >
796
- <snapshots >
797
- <enabled >false</enabled >
798
- </snapshots >
799
- <id >apache.public.https</id >
800
- <name >Apache Development Snapshot Repository</name >
801
- <url >https://repository.apache.org/content/repositories/public</url >
802
- </repository >
803
781
<repository >
804
782
<id >jetbrains-pty4j</id >
805
783
<name >jetbrains-intellij-dependencies</name >
You can’t perform that action at this time.
0 commit comments