-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
trigger: none | ||
pr: none | ||
|
||
resources: | ||
pipelines: | ||
- pipeline: validate-roledef | ||
source: \Public Cloud ARO pipelines\CI\CI | ||
trigger: true | ||
containers: | ||
- container: golang | ||
image: mcr.microsoft.com/onebranch/cbl-mariner/build:2.0 | ||
options: --user=0 | ||
|
||
# Azure DevOps Pipeline running e2e tests | ||
variables: | ||
- template: vars.yml | ||
|
||
# Run the test suite and collect must-gather | ||
jobs: | ||
- job: | ||
timeoutInMinutes: 30 | ||
pool: | ||
name: 1es-aro-ci-pool | ||
steps: | ||
- template: ./templates/template-checkout.yml | ||
|
||
- template: ./templates/template-az-cli-login.yml | ||
parameters: | ||
azureDevOpsJSONSPN: $(aro-v4-e2e-devops-spn) | ||
|
||
- script: | | ||
az account set -s $AZURE_SUBSCRIPTION_ID | ||
SECRET_SA_ACCOUNT_NAME=$(SECRET_SA_ACCOUNT_NAME) make secrets | ||
displayName: Setup (Azure) | ||
- script: | | ||
set -e | ||
. secrets/env | ||
# retrieve the oc cli | ||
wget -nv https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/$(OpenShiftCLIVersion)/openshift-client-linux-$(OpenShiftCLIVersion).tar.gz | ||
tar xf openshift-client-linux-$(OpenShiftCLIVersion).tar.gz | ||
OCP_VERSION=4.14.37 OC=./oc make validate-roledef | ||
displayName: Run check | ||
target: golang |