-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
53 lines (46 loc) · 1.47 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maven
# Build your Java project and run tests with Apache Maven.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
trigger:
- master
pool:
vmImage: "ubuntu-latest"
steps:
# - task: Docker@2
# inputs:
# containerRegistry: 'DockerHub (danielhabenicht)'
# repository: 'danielhabenicht/dsp-2020-simra-backend'
# command: 'buildAndPush'
# Dockerfile: './Dockerfile'
# tags: |
# $(Build.BuildId)
# latest
- task: DownloadBuildArtifacts@0
inputs:
buildType: "specific"
project: "972b0950-3130-4d92-90d8-c732e42cc887"
pipeline: "5"
specificBuildWithTriggering: true
buildVersionToDownload: "latest"
downloadType: "single"
artifactName: "drop"
downloadPath: " $(System.ArtifactsDirectory)"
- task: CmdLine@2
inputs:
script: |
cp $(System.ArtifactsDirectory)/drop/classifier.jar ./lib/classifier.jar
cp $(System.ArtifactsDirectory)/drop/preprocessing_android.jar ./lib/preprocessing_android.jar
rm -r $(System.ArtifactsDirectory)/drop
ls ./lib/
- task: CmdLine@2
inputs:
script: |
mvn initialize
mvn install
cp ./out/app.jar $(Build.ArtifactStagingDirectory)/app.jar
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: "$(Build.ArtifactStagingDirectory)"
ArtifactName: "drop"
publishLocation: "Container"