You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1001 B
YAML
30 lines
1001 B
YAML
steps:
|
|
- checkout: self
|
|
|
|
- task: PowerShell@2
|
|
displayName: 'Get source version'
|
|
inputs:
|
|
TargetType: inline
|
|
script: |
|
|
$url = "https://api.github.com/repos/$(REPOSITORY)/commits/$(BRANCH)"
|
|
$commit = Invoke-RestMethod -Uri $url -Method "GET"
|
|
Write-Output "##vso[task.setvariable variable=COMMIT_SHA]$($commit.sha)"
|
|
|
|
- task: PowerShell@2
|
|
displayName: 'Run builds'
|
|
inputs:
|
|
targetType: filePath
|
|
filePath: './azure-devops/run-ci-builds.ps1'
|
|
arguments: |
|
|
-TeamFoundationCollectionUri $(System.TeamFoundationCollectionUri) `
|
|
-AzureDevOpsProjectName $(System.TeamProject) `
|
|
-AzureDevOpsAccessToken $(System.AccessToken) `
|
|
-SourceBranch $(BRANCH) `
|
|
-DefinitionId $(DEFINITION_ID) `
|
|
-SourceVersion $(COMMIT_SHA) `
|
|
-ManifestLink $(MANIFEST_URL) `
|
|
-WaitForBuilds $(WAIT_FOR_BUILDS) `
|
|
-ToolVersions "$(ToolVersions)" `
|
|
-RetryIntervalSec $(INTERVAL_SEC) `
|
|
-RetryCount $(RETRY_COUNT)
|