Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions ci/ci-test-tasks/schedules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ schedules:
trigger: none
pr: none

variables:
SCHEDULED_TASKS: "KubKubernetesManifestV1,KubernetesV1,HemlDeployV0,HelmDeployV1,KubernetesV0"

jobs:
- job: set_tasks
displayName: Set tasks to test
Expand All @@ -18,8 +21,10 @@ jobs:
- bash: |
npm i minimist
displayName: npm i minimist

- bash: |
tasks=$(node ./ci/ci-test-tasks/get-tasks.js --exclude "$(TASKS_TO_EXCLUDE)")
tasks=$(node ./ci/ci-test-tasks/get-tasks.js --include "$(SCHEDULED_TASKS)" --exclude "$(TASKS_TO_EXCLUDE)")
echo "Tasks selected: $tasks"
echo "##vso[task.setvariable variable=tasks;isoutput=true]${tasks}"
displayName: Set tasks to test
name: set
Expand All @@ -28,11 +33,13 @@ jobs:
displayName: Run main test pipeline
dependsOn: set_tasks
timeoutInMinutes: 360
condition: and(succeeded(), ne(variables['tasks'], ''))
variables:
- name: tasks
value: $[dependencies.set_tasks.outputs['set.tasks']]
pool:
vmImage: ubuntu-latest

steps:
- task: NodeTool@0
displayName: Use Node 20.x
Expand All @@ -43,10 +50,10 @@ jobs:
cd ./ci/ci-test-tasks/test-and-verify-v2
npm i
npm run build
displayName: 'Build test pipelines runner'
displayName: Build test pipelines runner

- bash: |
echo "Tasks to test: $(tasks)"
node ./ci/ci-test-tasks/test-and-verify-v2 $(System.AccessToken) $(ADOUrl) $(System.TeamProject) $(tasks)
displayName: Run test pipelines and verify results
failOnStderr: true
failOnStderr: true