Skip to content

Commit b35d4cc

Browse files
authored
Adding 20.04 agent for build candidates (#59)
* adding 20.04 agent for build candidates
1 parent 6f53556 commit b35d4cc

File tree

2 files changed

+40
-7
lines changed

2 files changed

+40
-7
lines changed

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Install Procmon
22

3-
## Ubuntu 18.04
3+
## Ubuntu 18.04 & 20.04
44
#### 1. Register Microsoft key and feed
55
```sh
66
wget -q https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb -O packages-microsoft-prod.deb

azure-pipelines.yaml

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ pr:
1414

1515
jobs:
1616
- job: "Build_Procmon"
17-
pool: "Procmon-Ubuntu-Pool"
17+
pool: "Procmon-Ubuntu-18.04-Pool"
1818
steps:
1919
- script: |
2020
mkdir build && cd build
2121
cmake ..
2222
make
2323
displayName: "Build Procmon Binary"
2424
25-
- job: "DEB_PACKAGE_BUILD"
26-
pool: "Procmon-Ubuntu-Pool"
25+
- job: "Ubuntu_18_Package_Build"
26+
pool: "Procmon-Ubuntu-18.04-Pool"
2727
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
2828
dependsOn:
2929
- "Build_Procmon"
@@ -34,19 +34,52 @@ jobs:
3434
mkdir $(Build.SourcesDirectory)/build && cd $(Build.SourcesDirectory)/build
3535
cmake ..
3636
make
37-
displayName: "Build Procmon Binary"
37+
displayName: "Build Procmon 18.04 Binary"
38+
39+
- script: |
40+
mkdir $(Build.SourcesDirectory)/pkgbuild
41+
cd $(Build.SourcesDirectory)/build
42+
cpack ..
43+
mv *.deb $(Build.SourcesDirectory)/pkgbuild
44+
displayName: "Build DEB 18.04 Package"
45+
46+
- task: CopyFiles@2
47+
inputs:
48+
SourceFolder: '$(Build.SourcesDirectory)/pkgbuild/'
49+
TargetFolder: '$(Build.ArtifactStagingDirectory)/18.04/'
50+
displayName: 'Copy build artifacts to staging'
51+
52+
- task: PublishBuildArtifacts@1
53+
inputs:
54+
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
55+
ArtifactName: 'drop'
56+
publishLocation: 'Container'
57+
58+
- job: "Ubuntu_20_Package_Build"
59+
pool: "Procmon-Ubuntu-20.04-Pool"
60+
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
61+
dependsOn:
62+
- "Ubuntu_18_Package_Build"
63+
steps:
64+
- script: |
65+
export REVISION=$(Build.BuildId)
66+
sed -i "s/999999/$REVISION/g" $(Build.SourcesDirectory)/CMakeLists.txt
67+
mkdir $(Build.SourcesDirectory)/build && cd $(Build.SourcesDirectory)/build
68+
cmake ..
69+
make
70+
displayName: "Build Procmon 20.04 Binary"
3871
3972
- script: |
4073
mkdir $(Build.SourcesDirectory)/pkgbuild
4174
cd $(Build.SourcesDirectory)/build
4275
cpack ..
4376
mv *.deb $(Build.SourcesDirectory)/pkgbuild
44-
displayName: "Build DEB Package"
77+
displayName: "Build DEB 20.04 Package"
4578
4679
- task: CopyFiles@2
4780
inputs:
4881
SourceFolder: '$(Build.SourcesDirectory)/pkgbuild/'
49-
TargetFolder: '$(Build.ArtifactStagingDirectory)'
82+
TargetFolder: '$(Build.ArtifactStagingDirectory)/20.04/'
5083
displayName: 'Copy build artifacts to staging'
5184

5285
- task: PublishBuildArtifacts@1

0 commit comments

Comments
 (0)