File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,20 @@ stages:
39
39
pwsh : true
40
40
targetType : inline
41
41
script : |
42
+ $numRetry = 0
43
+ $maxRetry = 60*10
44
+
45
+ while($numRetry -le $maxRetry)
46
+ {
47
+ sudo fuser -v /var/lib/dpkg/lock-frontend 2>&1
48
+
49
+ if ($LASTEXITCODE -ne 0) { Break }
50
+
51
+ sleep 1
52
+ $numRetry++
53
+ echo "Waited $numRetry s for release of dpkg locks"
54
+ }
55
+
42
56
sudo apt update
43
57
sudo apt -y install maven
44
58
mvn -version
@@ -169,4 +183,4 @@ stages:
169
183
env :
170
184
HADOOP_HOME : $(Build.BinariesDirectory)$(PATH_SEPARATOR)hadoop
171
185
SPARK_HOME : $(Build.BinariesDirectory)$(PATH_SEPARATOR)spark-${{ test.version }}-bin-hadoop2.7
172
- DOTNET_WORKER_DIR : $(CURRENT_DOTNET_WORKER_DIR)
186
+ DOTNET_WORKER_DIR : $(CURRENT_DOTNET_WORKER_DIR)
You can’t perform that action at this time.
0 commit comments