Update service connection for azure pipeline

This commit is contained in:
Jason Watkins
2019-06-08 08:05:17 -07:00
parent 1c082d7730
commit 4d62f1cbab

View File

@@ -22,10 +22,10 @@ variables:
# The Github Release tasks requires a GH 'service connection' to be setup in the MS Azure Account # The Github Release tasks requires a GH 'service connection' to be setup in the MS Azure Account
# This connection must be setup in with a GH token in the MS Azure Project Settings # This connection must be setup in with a GH token in the MS Azure Project Settings
# #
# https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/github-release?view=azure-devops # https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/github-release?view=azure-devops
# https://docs.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml#sep-github # https://docs.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml#sep-github
xpcGitHubConnection: xpc_gh xpcGitHubConnection: jason-watkins
stages: stages:
@@ -59,9 +59,9 @@ stages:
sudo apt-get update sudo apt-get update
sudo apt-get install -y g++-5 mesa-common-dev g++-multilib g++-5-multilib sudo apt-get install -y g++-5 mesa-common-dev g++-multilib g++-5-multilib
displayName: 'apt install' displayName: 'apt install'
- script: | - script: |
cd xpcPlugin cd xpcPlugin
cmake . cmake .
make make
displayName: 'make' displayName: 'make'
@@ -115,7 +115,7 @@ stages:
inputs: inputs:
artifactName: '$(xpcArtifactNameWindows)' artifactName: '$(xpcArtifactNameWindows)'
targetPath: '$(xpcBuildOutputPath)' targetPath: '$(xpcBuildOutputPath)'
- stage: Deploy - stage: Deploy
jobs: jobs:
- job: Package_Binaries - job: Package_Binaries
@@ -132,7 +132,7 @@ stages:
inputs: inputs:
artifactName: '$(xpcArtifactNameLinux)' artifactName: '$(xpcArtifactNameLinux)'
targetPath: $(System.DefaultWorkingDirectory)/$(xpcPackageName) targetPath: $(System.DefaultWorkingDirectory)/$(xpcPackageName)
- task: DownloadPipelineArtifact@0 - task: DownloadPipelineArtifact@0
inputs: inputs:
artifactName: '$(xpcArtifactNameWindows)' artifactName: '$(xpcArtifactNameWindows)'
@@ -143,23 +143,23 @@ stages:
artifactName: '$(xpcPackageName)' artifactName: '$(xpcPackageName)'
targetPath: $(System.DefaultWorkingDirectory)/$(xpcPackageName) targetPath: $(System.DefaultWorkingDirectory)/$(xpcPackageName)
# Archive Files # Archive Files
- task: ArchiveFiles@2 - task: ArchiveFiles@2
inputs: inputs:
rootFolderOrFile: '$(System.DefaultWorkingDirectory)/$(xpcPackageName)' rootFolderOrFile: '$(System.DefaultWorkingDirectory)/$(xpcPackageName)'
includeRootFolder: true includeRootFolder: true
archiveType: 'zip' archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/$(xpcPackageName).zip' archiveFile: '$(Build.ArtifactStagingDirectory)/$(xpcPackageName).zip'
# Uploads the .zip to GitHub and creates a new "Release" with the commit tag # Uploads the .zip to GitHub and creates a new "Release" with the commit tag
# This tasks runs only on pushed tags # This tasks runs only on pushed tags
- task: GitHubRelease@0 - task: GitHubRelease@0
inputs: inputs:
gitHubConnection: '$(xpcGitHubConnection)' gitHubConnection: '$(xpcGitHubConnection)'
repositoryName: '$(Build.Repository.Name)' repositoryName: '$(Build.Repository.Name)'
action: 'create' action: 'create'
target: '$(Build.SourceVersion)' target: '$(Build.SourceVersion)'
tagSource: 'auto' tagSource: 'auto'
tag: $(tagName) tag: $(tagName)
assets: '$(Build.ArtifactStagingDirectory)/$(xpcPackageName).zip' assets: '$(Build.ArtifactStagingDirectory)/$(xpcPackageName).zip'
isPreRelease: true isPreRelease: true