-
Notifications
You must be signed in to change notification settings - Fork 4
/
azure-pipelines.yml
46 lines (41 loc) · 1.65 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
trigger: none
stages:
- stage: build
jobs:
- job: run_build
pool:
vmImage: 'ubuntu-latest' # other options: 'macOS-latest', 'windows-latest'
steps:
# Build
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
#mavenOptions: '-Xmx3072m'
#javaHomeOption: 'JDKVersion'
jdkVersionOption: '17'
#jdkArchitectureOption: 'x64'
#publishJUnitResults: true
#testResultsFiles: '**/TEST-*.xml'
goals: 'install -DskipTests'
# Deploy
## Copy files or build artifacts to a remote machine over SSH
- task: CopyFilesOverSSH@0
inputs:
sshEndpoint: "odm-platform"
sourceFolder: './product-plane-services/registry-server/target' # Optional
contents: 'odm-platform-pp-registry-server-1.0.0.jar'
targetFolder: "/home/odm" # Optional
overwrite: true # Optional
- task: CopyFilesOverSSH@0
inputs:
sshEndpoint: "odm-platform"
sourceFolder: './product-plane-services/devops-server/target' # Optional
contents: 'odm-platform-pp-devops-server-1.0.0.jar'
targetFolder: "/home/odm" # Optional
overwrite: true # Optional
## Run shell commands or a script on a remote machine using SSH
- task: SSH@0
inputs:
sshEndpoint: "odm-platform"
runOptions: 'script' # Options: commands, script, inline
scriptPath: "deployScript.sh" # Required when runOptions == Script