Skip to content

Commit 324320f

Browse files
author
sivakami
committed
set pipeline params.
1 parent 08885d4 commit 324320f

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.pipelines/swiftv2-long-running/pipeline.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ parameters:
1616
type: string
1717
default: "37deca37-c375-4a14-b90a-043849bd2bf1"
1818

19+
- name: serviceConnection
20+
displayName: "Azure Service Connection"
21+
type: string
22+
default: "Azure Container Networking - Standalone Test Service Connection"
23+
1924
- name: location
2025
displayName: "Deployment Region"
2126
type: string
@@ -28,25 +33,20 @@ parameters:
2833

2934
# Setup-only parameters (only used when runSetupStages=true)
3035
- name: resourceGroupName
31-
displayName: "[SETUP ONLY] Resource Group Name (empty = auto-generate sv2-long-run-<location>)"
36+
displayName: "Resource Group Name (empty = auto-generate sv2-long-run-<location>)"
3237
type: string
33-
default: ""
38+
default: "sv2-long-run-$(Build.BuildId)"
3439

3540
- name: vmSkuDefault
36-
displayName: "[SETUP ONLY] VM SKU for Default Node Pool"
41+
displayName: "VM SKU for Default Node Pool"
3742
type: string
3843
default: "Standard_D4s_v3"
3944

4045
- name: vmSkuHighNIC
41-
displayName: "[SETUP ONLY] VM SKU for High NIC Node Pool"
46+
displayName: "VM SKU for High NIC Node Pool"
4247
type: string
4348
default: "Standard_D16s_v3"
4449

45-
- name: serviceConnection
46-
displayName: "Azure Service Connection"
47-
type: string
48-
default: "Azure Container Networking - Standalone Test Service Connection"
49-
5050
extends:
5151
template: template/long-running-pipeline-template.yaml
5252
parameters:

.pipelines/swiftv2-long-running/template/long-running-pipeline-template.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ parameters:
1717

1818
variables:
1919
- name: rgName
20-
${{ if ne(parameters.resourceGroupName, '') }}:
20+
${{ if eq(parameters.runSetupStages, true) }}:
2121
value: ${{ parameters.resourceGroupName }}
2222
${{ else }}:
2323
value: sv2-long-run-${{ parameters.location }}
@@ -220,8 +220,8 @@ stages:
220220
kubectl --kubeconfig /tmp/aks-2.kubeconfig get nodes
221221
222222
echo "==> Creating test resources (8 scenarios)"
223-
export RG=$(rgName)
224-
export BUILD_ID=$(rgName)
223+
export RG="$(rgName)"
224+
export BUILD_ID="$(rgName)"
225225
ginkgo -v -trace --timeout=1h ./test/integration/swiftv2/longRunningCluster --focus="Datapath Create"
226226
227227
- script: |
@@ -280,7 +280,7 @@ stages:
280280
--admin
281281
282282
echo "==> Deleting test resources (8 scenarios)"
283-
export RG=$(rgName)
284-
export BUILD_ID=$(rgName)
283+
export RG="$(rgName)"
284+
export BUILD_ID="$(rgName)"
285285
ginkgo -v -trace --timeout=1h ./test/integration/swiftv2/longRunningCluster --focus="Datapath Delete"
286286

0 commit comments

Comments
 (0)