Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Commit b8a44b4

Browse files
authored
Azure pipeline fix - sbt 1.4.9 (#416)
1 parent 9b103c8 commit b8a44b4

1 file changed

Lines changed: 28 additions & 13 deletions

File tree

azure-pipelines.yml

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,24 @@ jobs:
1717
versionSpec: '8'
1818
jdkArchitectureOption: 'x64'
1919
jdkSourceOption: 'PreInstalled'
20-
- script: sbt ++2.11.12 clean
20+
# Use sbt 1.4.9. The default sbt launcher in ubuntu-18.04 20210405 image is
21+
# 1.5.0, but the version has an issue to compile with 0.13.18.
22+
# See: https://github.com/sbt/sbt/issues/6447
23+
- script: wget -O /tmp/sbt.tgz "https://github.com/sbt/sbt/releases/download/v1.4.9/sbt-1.4.9.tgz"
24+
displayName: 'Download sbt 1.4.9'
25+
- script: tar zxf /tmp/sbt.tgz -C /tmp/
26+
displayName: 'Extract sbt'
27+
- script: /tmp/sbt//bin/sbt ++2.11.12 clean
2128
displayName: 'Running $sbt clean'
22-
- script: sbt ++2.11.12 update
29+
- script: /tmp/sbt/bin/sbt ++2.11.12 update
2330
displayName: 'Running $sbt update'
24-
- script: sbt ++2.11.12 compile
31+
- script: /tmp/sbt/bin/sbt ++2.11.12 compile
2532
displayName: 'Running $sbt compile'
26-
- script: sbt ++2.11.12 test
33+
- script: /tmp/sbt/bin/sbt ++2.11.12 test
2734
displayName: 'Running $sbt test'
2835
# If not a pull request, publish artifacts.
2936
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
30-
- script: sbt ++2.11.12 package
37+
- script: /tmp/sbt/bin/sbt ++2.11.12 package
3138
displayName: 'Running $sbt package'
3239
- task: CopyFiles@2
3340
displayName: 'Copy hyperspace-core JAR'
@@ -46,17 +53,21 @@ jobs:
4653
pool:
4754
vmImage: 'ubuntu-18.04'
4855
steps:
49-
- script: sbt ++2.12.8 clean
56+
- script: wget -O /tmp/sbt.tgz "https://github.com/sbt/sbt/releases/download/v1.4.9/sbt-1.4.9.tgz"
57+
displayName: 'Download sbt 1.4.9'
58+
- script: tar zxf /tmp/sbt.tgz -C /tmp/
59+
displayName: 'Extract sbt'
60+
- script: /tmp/sbt/bin/sbt ++2.12.8 clean
5061
displayName: 'Running $sbt clean'
51-
- script: sbt ++2.12.8 update
62+
- script: /tmp/sbt/bin/sbt ++2.12.8 update
5263
displayName: 'Running $sbt update'
53-
- script: sbt ++2.12.8 compile
64+
- script: /tmp/sbt/bin/sbt ++2.12.8 compile
5465
displayName: 'Running $sbt compile'
55-
- script: sbt ++2.12.8 test
66+
- script: /tmp/sbt/bin/sbt ++2.12.8 test
5667
displayName: 'Running $sbt test'
5768
# If not a pull request, publish artifacts.
5869
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
59-
- script: sbt ++2.12.8 package
70+
- script: /tmp/sbt/bin/sbt ++2.12.8 package
6071
displayName: 'Running $sbt package'
6172
- task: CopyFiles@2
6273
displayName: 'Copy hyperspace-core JAR'
@@ -86,11 +97,15 @@ jobs:
8697
versionSpec: '8'
8798
jdkArchitectureOption: 'x64'
8899
jdkSourceOption: 'PreInstalled'
89-
- script: sbt ++2.11.12 clean
100+
- script: wget -O /tmp/sbt.tgz "https://github.com/sbt/sbt/releases/download/v1.4.9/sbt-1.4.9.tgz"
101+
displayName: 'Download sbt 1.4.9'
102+
- script: tar zxf /tmp/sbt.tgz -C /tmp/
103+
displayName: 'Extract sbt'
104+
- script: /tmp/sbt/bin/sbt ++2.11.12 clean
90105
displayName: 'Running $sbt clean'
91-
- script: sbt ++2.11.12 update
106+
- script: /tmp/sbt/bin/sbt ++2.11.12 update
92107
displayName: 'Running $sbt update'
93-
- script: sbt ++2.11.12 compile
108+
- script: /tmp/sbt/bin/sbt ++2.11.12 compile
94109
displayName: 'Running $sbt compile'
95110
- task: Bash@3
96111
inputs:

0 commit comments

Comments
 (0)