-
Notifications
You must be signed in to change notification settings - Fork 11
/
build-version.yml
78 lines (78 loc) · 3.34 KB
/
build-version.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
steps:
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'specific'
project: '69a61c30-d0ea-48c2-b3dc-5605a3802544'
pipeline: ${{ parameters.pipeline }}
specificBuildWithTriggering: true
buildVersionToDownload: 'latest'
downloadType: 'single'
artifactName: 'drop'
downloadPath: '$(System.ArtifactsDirectory)'
displayName: 'Downloading install${{ parameters.install_version }}.tar.gz'
- task: CmdLine@2
inputs:
script: |
mkdir x64
move $(System.ArtifactsDirectory)\drop\install_x64_rootfs.tar.gz x64\install${{ parameters.install_version }}.tar.gz
displayName: 'Moving install${{ parameters.install_version }}.tar.gz'
- task: Bash@3
inputs:
targetType: 'inline'
script: |
version=$(sed -n -E '/^ +Version=/s/^ +Version="([0-9\.]*)(.*)/\1/p' PengwinEnterprise${{ parameters.install_version }}/Package.appxmanifest)
sed -E -i "s/(^.*commandline.*${{ parameters.package_name }}_)([0-9\.]+)(_.*$)/\1${version}\3/g" PengwinEnterprise${{ parameters.install_version }}/Public/Fragments/PengwinEnterprise${{ parameters.distro_version }}.json
displayName: 'Updating Terminal profile'
- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/t:PengwinEnterprise${{ parameters.distro_version }} /m /p:AppxBundlePlatforms="$(buildPlatform)" /p:AppxPackageDir="$(appxPackageDir)" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=StoreUpload /p:AppxPackageSigningEnabled=false /p:PackageCertificateThumbprint="" /p:PackageCertificateKeyFile="$(${{ parameters.certificate_name }}.secureFilePath)" /p:PackageCertificatePassword="1"'
platform: 'x64'
configuration: '$(buildConfiguration)'
maximumCpuCount: true
msbuildArchitecture: 'x64'
displayName: 'Building Version ${{ parameters.distro_version }}'
- task: CopyFiles@2
inputs:
SourceFolder: '$(appxPackageDir)'
Contents: |
PengwinEnterprise${{ parameters.distro_version }}*.msixupload
PengwinEnterprise${{ parameters.distro_version }}*\PengwinEnterprise${{ parameters.distro_version }}*.msixbundle
TargetFolder: '$(Build.ArtifactStagingDirectory)'
displayName: 'Copying the msix'
- task: DeleteFiles@1
inputs:
SourceFolder: '$(appxPackageDir)'
Contents: '**\*.*'
displayName: 'Cleaning up 1'
- task: DeleteFiles@1
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)'
Contents: 'x64\install${{ parameters.install_version }}.tar.gz'
displayName: 'Cleaning up 2'
- task: store-flight@0
continueOnError: true
timeoutInMinutes: 10
inputs:
serviceEndpoint: 'Whitewater Foundry'
appId: ${{ parameters.app_id }}
flightName: 'Azure Pipelines'
packagePath: '$(Build.ArtifactStagingDirectory)\**\PengwinEnterprise${{ parameters.distro_version }}*bundle.*xupload'
force: true
skipPolling: false
deletePackages: true
numberOfPackagesToKeep: '0'
- task: store-publish@0
continueOnError: true
timeoutInMinutes: 10
inputs:
serviceEndpoint: 'Whitewater Foundry'
appId: ${{ parameters.app_id }}
metadataUpdateMethod: 'TextMetadata'
metadataPath: '$(System.DefaultWorkingDirectory)\appMetadata${{ parameters.install_version }}'
updateImages: false
packagePath: '$(Build.ArtifactStagingDirectory)\**\PengwinEnterprise${{ parameters.distro_version }}*bundle.*xupload'
force: true
skipPolling: false
deletePackages: true
numberOfPackagesToKeep: '3'