From 8e27300989bd53727c070778bfee7c524e643dff Mon Sep 17 00:00:00 2001 From: Kirstyn Amperiadis <102087132+kamperiadis@users.noreply.github.com> Date: Tue, 21 May 2024 19:53:49 -0500 Subject: [PATCH] Add public build yml file (#761) * Add public build yml file * Update name of artifact drop * Add retries when running flaky tests --- azure-pipelines.yml | 1 + eng/ci/public-build.yml | 28 +++++++++++++++++++ .../official/jobs/build-artifacts.yml | 2 +- .../official/jobs/run-e2e-tests-linux.yml | 1 + .../official/jobs/run-e2e-tests-windows.yml | 1 + 5 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 eng/ci/public-build.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 94e61070..270ba0f0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -207,6 +207,7 @@ jobs: Copy-Item "confluent_cloud_cacert.pem" "./target/azure-functions/azure-functions-java-endtoendtests" displayName: 'Package Java for E2E' - task: DotNetCoreCLI@2 + retryCountOnTaskFailure: 3 inputs: command: 'test' projects: | diff --git a/eng/ci/public-build.yml b/eng/ci/public-build.yml new file mode 100644 index 00000000..3096183c --- /dev/null +++ b/eng/ci/public-build.yml @@ -0,0 +1,28 @@ +trigger: + batch: true + branches: + include: + - dev + +pr: + branches: + include: + - dev + +resources: + repositories: + - repository: 1es + type: git + name: 1ESPipelineTemplates/1ESPipelineTemplates + ref: refs/tags/release + +variables: + - template: /eng/ci/templates/variables/build.yml@self + +extends: + template: v1/1ES.Unofficial.PipelineTemplate.yml@1es + parameters: + pool: + name: 1es-pool-azfunc-public + image: 1es-windows-2022 + os: windows \ No newline at end of file diff --git a/eng/ci/templates/official/jobs/build-artifacts.yml b/eng/ci/templates/official/jobs/build-artifacts.yml index f9071c05..6f3c9117 100644 --- a/eng/ci/templates/official/jobs/build-artifacts.yml +++ b/eng/ci/templates/official/jobs/build-artifacts.yml @@ -7,7 +7,7 @@ jobs: outputs: - output: pipelineArtifact targetPath: $(Build.ArtifactStagingDirectory) - artifactName: 'buildDrop' + artifactName: 'drop' - output: nuget condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/dev'), eq(variables['UPLOADPACKAGETOPRERELEASEFEED'], true)) useDotNetTask: false diff --git a/eng/ci/templates/official/jobs/run-e2e-tests-linux.yml b/eng/ci/templates/official/jobs/run-e2e-tests-linux.yml index 83f04b83..d98df664 100644 --- a/eng/ci/templates/official/jobs/run-e2e-tests-linux.yml +++ b/eng/ci/templates/official/jobs/run-e2e-tests-linux.yml @@ -88,6 +88,7 @@ jobs: Copy-Item "confluent_cloud_cacert.pem" "./target/azure-functions/azure-functions-java-endtoendtests" displayName: 'Package Java for E2E' - task: DotNetCoreCLI@2 + retryCountOnTaskFailure: 3 inputs: command: 'test' projects: | diff --git a/eng/ci/templates/official/jobs/run-e2e-tests-windows.yml b/eng/ci/templates/official/jobs/run-e2e-tests-windows.yml index 38c34f45..2d7edff7 100644 --- a/eng/ci/templates/official/jobs/run-e2e-tests-windows.yml +++ b/eng/ci/templates/official/jobs/run-e2e-tests-windows.yml @@ -72,6 +72,7 @@ jobs: Copy-Item "confluent_cloud_cacert.pem" "./target/azure-functions/azure-functions-java-endtoendtests" displayName: 'Package Java for E2E' - task: DotNetCoreCLI@2 + retryCountOnTaskFailure: 3 inputs: command: 'test' projects: |