-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathazure-pipelines-changelog.yml
47 lines (39 loc) · 1.22 KB
/
azure-pipelines-changelog.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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- none
pool:
vmImage: ubuntu-latest
parameters:
- name: CommitsSince
type: string
displayName: 'Generate Changelog since (for example 2021-10-01)?'
default: '2021-10-01'
- name: BranchName
type: string
default: 'main'
steps:
- checkout: none
- task: InstallSSHKey@0
inputs:
knownHostsEntry: '140.82.121.3'
sshKeySecureFile: 'algodocs_rsa'
- script: |
echo System.ArtifactsDirectory=$(System.ArtifactsDirectory)
git clone https://github.com/mfe-/AdbApp.git --progress
displayName: 'git clone'
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
# Write your PowerShell commands here.
cd AdbApp
.\generate_changelog.ps1 -workitembaseuri "https://github.com/mfe-/AdbApp/issues/{0}" -branch "${{ parameters.BranchName }}" -since "${{parameters.CommitsSince}}" -logp "$(System.ArtifactsDirectory)"
Write-Host "Hello World"
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'changeset'
publishLocation: 'Container'