Enable CI App on non-fork PRs
* Revert "Don't spin up agent on prs (#1088)"
This reverts commit
* Enable CI App on non-fork prs
@@ -16,10 +16,22 @@ resources:
name: Datadog/integrations-core
ref: master
endpoint: DataDog
+ containers:
+ - ${{ if eq(variables['System.PullRequest.IsFork'], 'False') }}:
+ - container: dd_agent
+ image: gcr.io/datadoghq/agent:latest
+ ports:
+ - 8127:8126
+ env:
+ DD_API_KEY: $(DD_CI_API_KEY)
+ DD_HOSTNAME: "none"
+ DD_INSIDE_CI: "true"
jobs:
- template: '.azure-pipelines/templates/test-single-linux.yml@integrations-core'
parameters:
+ ${{ if eq(variables['System.PullRequest.IsFork'], 'False') }}:
+ ddtrace_flag: '--ddtrace'
job_name: Changed
display: Linux
validate: true
@@ -29,6 +41,8 @@ jobs:
- template: '.azure-pipelines/templates/test-single-windows.yml@integrations-core'
parameters:
+ ${{ if eq(variables['System.PullRequest.IsFork'], 'False') }}:
+ ddtrace_flag: '--ddtrace'
job_name: Changed
check: '--changed none_yet'
validate_changed: changed
