From 36c96ad3d2b44ebe986f4b77ffd09c195596cd11 Mon Sep 17 00:00:00 2001 From: John Payne <89417863+jpayne3506@users.noreply.github.com> Date: Mon, 6 Nov 2023 13:52:48 -0800 Subject: [PATCH] ci: Move E2E runtime variables from job level to stage (#2305) ci: Move E2E runtime variables to stage --- .../singletenancy/aks-swift/e2e-job-template.yaml | 7 +++---- .../azure-cni-overlay-e2e-job-template.yaml | 7 +++---- .../cilium-overlay-e2e-job-template.yaml | 10 +++++----- .../singletenancy/cilium/cilium-e2e-job-template.yaml | 7 +++---- 4 files changed, 14 insertions(+), 17 deletions(-) diff --git a/.pipelines/singletenancy/aks-swift/e2e-job-template.yaml b/.pipelines/singletenancy/aks-swift/e2e-job-template.yaml index e0f447b6c4..3868664ff7 100644 --- a/.pipelines/singletenancy/aks-swift/e2e-job-template.yaml +++ b/.pipelines/singletenancy/aks-swift/e2e-job-template.yaml @@ -40,6 +40,9 @@ stages: TAG: $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.Tag'] ] CURRENT_VERSION: $[ stagedependencies.containerize.check_tag.outputs['CurrentTagManifests.currentTagManifests'] ] commitID: $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.commitID'] ] + GOPATH: "$(Agent.TempDirectory)/go" # Go workspace path + GOBIN: "$(GOPATH)/bin" # Go binaries path + modulePath: "$(GOPATH)/src/github.com/Azure/azure-container-networking" condition: and(succeeded(), eq(variables.TAG, variables.CURRENT_VERSION)) pool: name: $(BUILD_POOL_NAME_DEFAULT) @@ -52,10 +55,6 @@ stages: demands: - agent.os -equals Linux - Role -equals $(CUSTOM_E2E_ROLE) - variables: - GOPATH: "$(Agent.TempDirectory)/go" # Go workspace path - GOBIN: "$(GOPATH)/bin" # Go binaries path - modulePath: "$(GOPATH)/src/github.com/Azure/azure-container-networking" steps: - template: e2e-step-template.yaml parameters: diff --git a/.pipelines/singletenancy/azure-cni-overlay/azure-cni-overlay-e2e-job-template.yaml b/.pipelines/singletenancy/azure-cni-overlay/azure-cni-overlay-e2e-job-template.yaml index b54844967d..d2aa29936f 100644 --- a/.pipelines/singletenancy/azure-cni-overlay/azure-cni-overlay-e2e-job-template.yaml +++ b/.pipelines/singletenancy/azure-cni-overlay/azure-cni-overlay-e2e-job-template.yaml @@ -38,6 +38,9 @@ stages: - ${{ parameters.clusterName }} variables: commitID: $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.commitID'] ] + GOPATH: "$(Agent.TempDirectory)/go" # Go workspace path + GOBIN: "$(GOPATH)/bin" # Go binaries path + modulePath: "$(GOPATH)/src/github.com/Azure/azure-container-networking" pool: name: $(BUILD_POOL_NAME_DEFAULT) jobs: @@ -49,10 +52,6 @@ stages: demands: - agent.os -equals Linux - Role -equals $(CUSTOM_E2E_ROLE) - variables: - GOPATH: "$(Agent.TempDirectory)/go" # Go workspace path - GOBIN: "$(GOPATH)/bin" # Go binaries path - modulePath: "$(GOPATH)/src/github.com/Azure/azure-container-networking" steps: - template: azure-cni-overlay-e2e-step-template.yaml parameters: diff --git a/.pipelines/singletenancy/cilium-overlay/cilium-overlay-e2e-job-template.yaml b/.pipelines/singletenancy/cilium-overlay/cilium-overlay-e2e-job-template.yaml index 2c80a759c4..124ce2ea25 100644 --- a/.pipelines/singletenancy/cilium-overlay/cilium-overlay-e2e-job-template.yaml +++ b/.pipelines/singletenancy/cilium-overlay/cilium-overlay-e2e-job-template.yaml @@ -36,6 +36,11 @@ stages: - setup - publish - ${{ parameters.clusterName }} + variables: + commitID: $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.commitID'] ] + GOPATH: "$(Agent.TempDirectory)/go" # Go workspace path + GOBIN: "$(GOPATH)/bin" # Go binaries path + modulePath: "$(GOPATH)/src/github.com/Azure/azure-container-networking" pool: name: $(BUILD_POOL_NAME_DEFAULT) jobs: @@ -47,11 +52,6 @@ stages: demands: - agent.os -equals Linux - Role -equals $(CUSTOM_E2E_ROLE) - variables: - GOPATH: "$(Agent.TempDirectory)/go" # Go workspace path - GOBIN: "$(GOPATH)/bin" # Go binaries path - modulePath: "$(GOPATH)/src/github.com/Azure/azure-container-networking" - commitID: $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.commitID'] ] steps: - template: cilium-overlay-e2e-step-template.yaml parameters: diff --git a/.pipelines/singletenancy/cilium/cilium-e2e-job-template.yaml b/.pipelines/singletenancy/cilium/cilium-e2e-job-template.yaml index a7971c420b..0beefb0cce 100644 --- a/.pipelines/singletenancy/cilium/cilium-e2e-job-template.yaml +++ b/.pipelines/singletenancy/cilium/cilium-e2e-job-template.yaml @@ -40,6 +40,9 @@ stages: TAG: $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.Tag'] ] CURRENT_VERSION: $[ stagedependencies.containerize.check_tag.outputs['CurrentTagManifests.currentTagManifests'] ] commitID: $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.commitID'] ] + GOPATH: "$(Agent.TempDirectory)/go" # Go workspace path + GOBIN: "$(GOPATH)/bin" # Go binaries path + modulePath: "$(GOPATH)/src/github.com/Azure/azure-container-networking" condition: and(succeeded(), eq(variables.TAG, variables.CURRENT_VERSION)) pool: name: $(BUILD_POOL_NAME_DEFAULT) @@ -52,10 +55,6 @@ stages: demands: - agent.os -equals Linux - Role -equals $(CUSTOM_E2E_ROLE) - variables: - GOPATH: "$(Agent.TempDirectory)/go" # Go workspace path - GOBIN: "$(GOPATH)/bin" # Go binaries path - modulePath: "$(GOPATH)/src/github.com/Azure/azure-container-networking" steps: - template: cilium-e2e-step-template.yaml parameters: