Skip to content

Commit

Permalink
Refactor build with tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
kamperiadis committed Jul 15, 2024
1 parent ffb966a commit f9c0c8b
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions eng/ci/templates/jobs/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,17 @@ jobs:
customCommand: 'run build'
displayName: 'Build'

- bash: |
cd ./tests/e2e/java8
mvn clean package
mvn azure-functions:package
- task: JavaToolInstaller@0
inputs:
versionSpec: '8'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
displayName: 'Install JDK 8'

- task: Maven@3
inputs:
mavenPomFile: 'tests/e2e/java8/pom.xml'
goals: 'clean package azure-functions:package'
displayName: 'Build project for java language'

- task: UseDotNet@2
Expand All @@ -46,8 +53,8 @@ jobs:
packageType: sdk
version: 3.1.x

- pwsh: |
cd ./tests/e2e/dotnet3
dotnet --version
dotnet build
- task: DotNetCoreCLI@2
inputs:
command: 'build'
projects: 'tests/e2e/dotnet3/*.csproj'
displayName: 'Build project for csharp language'

0 comments on commit f9c0c8b

Please sign in to comment.