-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipeline.yml
40 lines (38 loc) · 1.46 KB
/
azure-pipeline.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
name: sdk-lib-logging-build-$(Date:yyyyMMdd)-$(Build.SourceBranchName)
pool:
vmImage: 'ubuntu-latest'
steps:
- task: MavenAuthenticate@0
inputs:
artifactsFeeds: sdk-snapshots, EFS-SDK
- task: Maven@3
displayName: 'Deploy the Snapshot of the SDK Logging Library'
inputs:
mavenPomFile: 'pom.xml'
goals: 'package deploy'
options: '-Dsnapshot-repo.id=$(snapshotRepoId) -Dsnapshot-repo.url=$(snapshotRepoUrl)'
publishJUnitResults: false
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.17'
mavenVersionOption: 'Default'
mavenAuthenticateFeed: false
effectivePomSkip: false
sonarQubeRunAnalysis: false
- powershell: |
$tag = "$(Build.SourceBranch)"
$tag = $tag -replace "refs/tags/", ""
echo "##vso[task.setvariable variable=TAG;isOutput=true]$tag"
name: createTagVariableStep
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
- task: Maven@3
name: release_service_storage_common_lib
displayName: 'Release the SDK Logging Library when git tag is set'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
inputs:
mavenPomFile: 'pom.xml'
options: '-Dlib.version=$(createTagVariableStep.TAG) -Drelease-repo.id=$(releaseRepoId) -Drelease-repo.url=$(releaseRepoUrl)'
mavenAuthenticateFeed: true
publishJUnitResults: false
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.17'
goals: 'package deploy'