зеркало из https://github.com/Azure/ARO-RP.git
68 строки
2.4 KiB
YAML
68 строки
2.4 KiB
YAML
# Azure DevOps Pipeline running RP e2e and Billing e2e
|
|
variables:
|
|
- template: vars.yml
|
|
stages:
|
|
- stage: RP_E2E
|
|
dependsOn: []
|
|
displayName: 🚀 RUN RP E2E
|
|
jobs:
|
|
- job: RP_E2E_Job
|
|
timeoutInMinutes: 180
|
|
pool:
|
|
name: ARO-CI
|
|
steps:
|
|
- template: ./templates/template-prod-e2e-steps.yml
|
|
parameters:
|
|
location: $(LOCATION)
|
|
subscription: $(e2e-subscription)
|
|
azureDevOpsE2EJSONSPN: $(aro-v4-e2e-devops-spn)
|
|
aroVersionStorageAccount: $(aro-version-storage-account)
|
|
rpMode: int
|
|
- stage: Delay_For_Billing_Table
|
|
displayName: Wait 6 hours for billing table ready
|
|
jobs:
|
|
- job: JustWait
|
|
timeoutInMinutes: 400
|
|
pool: server
|
|
steps:
|
|
- task: Delay@1
|
|
inputs:
|
|
delayForMinutes: '360'
|
|
- stage: Billing_E2E
|
|
displayName: Billing E2E
|
|
jobs:
|
|
- job: TriggerBillingBuild
|
|
displayName: Trigger Billing E2E pipeline
|
|
steps:
|
|
- script: |
|
|
# Pass variables between tasks: https://medium.com/microsoftazure/how-to-pass-variables-in-azure-pipelines-yaml-tasks-5c81c5d31763
|
|
echo "##vso[task.setvariable variable=REGION]$LOCATION"
|
|
CLUSTER="v4-e2e-V$BUILD_BUILDID-$LOCATION"
|
|
echo "##vso[task.setvariable variable=CLUSTER]$CLUSTER"
|
|
CLUSTER_RESOURCEGROUP="v4-e2e-V$BUILD_BUILDID-$LOCATION"
|
|
echo "##vso[task.setvariable variable=CLUSTER_RESOURCEGROUP]$CLUSTER_RESOURCEGROUP"
|
|
echo "E2E Cluster Resource Group Name:" $CLUSTER_RESOURCEGROUP
|
|
echo "E2E Cluster Name:" $CLUSTER
|
|
displayName: Pass variables into next Task
|
|
- task: TriggerBuild@3
|
|
inputs:
|
|
definitionIsInCurrentTeamProject: true
|
|
buildDefinition: $(BillingE2EPipelineName)
|
|
queueBuildForUserThatTriggeredBuild: true
|
|
ignoreSslCertificateErrors: false
|
|
useSameSourceVersion: false
|
|
useCustomSourceVersion: false
|
|
useSameBranch: false
|
|
branchToUse: $(BillingE2EBranchName)
|
|
waitForQueuedBuildsToFinish: true
|
|
storeInEnvironmentVariable: false
|
|
buildParameters: CLUSTER_RESOURCEGROUP:$(CLUSTER_RESOURCEGROUP), CLUSTER:$(CLUSTER),
|
|
REGION:$(REGION)
|
|
authenticationMethod: OAuth Token
|
|
password: $(System.AccessToken)
|
|
enableBuildInQueueCondition: false
|
|
dependentOnSuccessfulBuildCondition: true
|
|
dependentOnFailedBuildCondition: true
|
|
checkbuildsoncurrentbranch: false
|
|
failTaskIfConditionsAreNotFulfilled: true
|