-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
79 lines (77 loc) · 3.02 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
jobs:
- job: 'VS2017_Win2016'
pool: 'Hosted VS2017'
steps:
- task: Bash@3
displayName: Create Source Folder
inputs:
targetType: 'inline'
script: 'mkdir -p ./src/javaToolInstaller/JDK'
workingDirectory: '$(build.sourcesdirectory)'
- task: Bash@3
displayName: Download JDK archive
inputs:
targetType: 'inline'
script: 'curl http://akvelon-ssh-test.eastus.cloudapp.azure.com:8044/zulu-7-azure-jdk_7.24.0.2-7.0.191-win_x64.zip --output ./JDK7.zip'
workingDirectory: '$(build.sourcesdirectory)/src/javaToolInstaller/JDK'
- task: JavaToolInstallerPatch0620@0
displayName: 'Unpack Java, inactive Cleaning'
inputs:
versionSpec: 7
jdkArchitectureOption: x64
jdkSourceOption: LocalDirectory
jdkFile: './src/javaToolInstaller/JDK/JDK7.zip'
jdkDestinationDirectory: tempDir/
cleanDestinationDirectory: false
- task: JavaToolInstallerPatch0620@0
displayName: 'Unpack Java, active Cleaning'
inputs:
versionSpec: 7
jdkArchitectureOption: x64
jdkSourceOption: LocalDirectory
jdkFile: './src/javaToolInstaller/JDK/JDK7.zip'
jdkDestinationDirectory: tempDir/
cleanDestinationDirectory: true
- task: JavaToolInstallerPatch0620@0
displayName: 'Unpack Java, active Cleaning'
inputs:
versionSpec: 7
jdkArchitectureOption: x64
jdkSourceOption: LocalDirectory
jdkFile: './src/javaToolInstaller/JDK/JDK7.zip'
jdkDestinationDirectory: tempDir/
cleanDestinationDirectory: true
- task: JavaToolInstallerPatch0620@0
displayName: 'Unpack Java, inactive Cleaning'
inputs:
versionSpec: 7
jdkArchitectureOption: x64
jdkSourceOption: LocalDirectory
jdkFile: './src/javaToolInstaller/JDK/JDK7.zip'
jdkDestinationDirectory: tempDir/
cleanDestinationDirectory: false
- task: JavaToolInstallerPatch0620@0
displayName: 'Unpack Java, inactive Cleaning'
inputs:
versionSpec: 7
jdkArchitectureOption: x64
jdkSourceOption: LocalDirectory
jdkFile: './src/javaToolInstaller/JDK/JDK7.zip'
jdkDestinationDirectory: tempDir/
cleanDestinationDirectory: false
- task: Maven@3
displayName: 'Maven JavaTestProject/pom.xml'
inputs:
mavenPomFile: '$(build.sourcesdirectory)/JavaTestProject/pom.xml'
javaHomeOption: Path
jdkDirectory: '$(JAVA_HOME)'
- task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
inputs:
SourceFolder: '$(build.sourcesdirectory)'
Contents: '**/*.jar'
TargetFolder: '$(build.artifactstagingdirectory)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'