From 06a2737143cce85f3e13ce5f8ba526868a1eae27 Mon Sep 17 00:00:00 2001 From: Lei Ni <7233663+leni-msft@users.noreply.github.com> Date: Wed, 23 Sep 2020 11:34:44 +0800 Subject: [PATCH 1/8] Update SDKAutomation.yml for Azure Pipelines --- .azure-pipelines/SDKAutomation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/SDKAutomation.yml b/.azure-pipelines/SDKAutomation.yml index a567d468ab0b..fc1c25500e1c 100644 --- a/.azure-pipelines/SDKAutomation.yml +++ b/.azure-pipelines/SDKAutomation.yml @@ -41,7 +41,7 @@ jobs: SDK_REPO_NAME: azure-sdk-for-go Trenton: SDK_REPO_NAME: azure-sdk-for-trenton - ${{ if eq(variables['ENABLE_RESOURCE_MANAGER_SCHEMAS'], 'true') }}: + ${{ if eq(variables['Build.Repository.Name'], 'azure-rest-api-specs') }}: Schema: SDK_REPO_NAME: azure-resource-manager-schemas steps: From ae95c5d57fc20e7bcb5b1769861f1a147626d67b Mon Sep 17 00:00:00 2001 From: Lei Ni <7233663+leni-msft@users.noreply.github.com> Date: Wed, 23 Sep 2020 12:47:39 +0800 Subject: [PATCH 2/8] Update SDKAutomation.yml for Azure Pipelines --- .azure-pipelines/SDKAutomation.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines/SDKAutomation.yml b/.azure-pipelines/SDKAutomation.yml index fc1c25500e1c..ddb45d4ea708 100644 --- a/.azure-pipelines/SDKAutomation.yml +++ b/.azure-pipelines/SDKAutomation.yml @@ -41,9 +41,9 @@ jobs: SDK_REPO_NAME: azure-sdk-for-go Trenton: SDK_REPO_NAME: azure-sdk-for-trenton - ${{ if eq(variables['Build.Repository.Name'], 'azure-rest-api-specs') }}: - Schema: - SDK_REPO_NAME: azure-resource-manager-schemas + Schema: + SDK_REPO_NAME: azure-resource-manager-schemas + condition: $[ or(ne(SDK_REPO_NAME, 'azure-resource-manager-schemas'), eq(SPEC_REPO, 'azure-rest-api-specs')) ]} steps: - checkout: none - script: | From 65a5da7329c5f53b44af646d76213d3ef45a0a48 Mon Sep 17 00:00:00 2001 From: Lei Ni <7233663+leni-msft@users.noreply.github.com> Date: Wed, 23 Sep 2020 12:51:49 +0800 Subject: [PATCH 3/8] Update SDKAutomation.yml for Azure Pipelines --- .azure-pipelines/SDKAutomation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/SDKAutomation.yml b/.azure-pipelines/SDKAutomation.yml index ddb45d4ea708..396bd71d2b1b 100644 --- a/.azure-pipelines/SDKAutomation.yml +++ b/.azure-pipelines/SDKAutomation.yml @@ -43,7 +43,7 @@ jobs: SDK_REPO_NAME: azure-sdk-for-trenton Schema: SDK_REPO_NAME: azure-resource-manager-schemas - condition: $[ or(ne(SDK_REPO_NAME, 'azure-resource-manager-schemas'), eq(SPEC_REPO, 'azure-rest-api-specs')) ]} + condition: or(ne(SDK_REPO_NAME, 'azure-resource-manager-schemas'), eq(SPEC_REPO, 'azure-rest-api-specs')) steps: - checkout: none - script: | From a8e6b6e61f49b61163795ffb37b57886e6607356 Mon Sep 17 00:00:00 2001 From: Lei Ni <7233663+leni-msft@users.noreply.github.com> Date: Wed, 23 Sep 2020 12:53:18 +0800 Subject: [PATCH 4/8] Update SDKAutomation.yml for Azure Pipelines --- .azure-pipelines/SDKAutomation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/SDKAutomation.yml b/.azure-pipelines/SDKAutomation.yml index 396bd71d2b1b..24257027af2a 100644 --- a/.azure-pipelines/SDKAutomation.yml +++ b/.azure-pipelines/SDKAutomation.yml @@ -43,7 +43,7 @@ jobs: SDK_REPO_NAME: azure-sdk-for-trenton Schema: SDK_REPO_NAME: azure-resource-manager-schemas - condition: or(ne(SDK_REPO_NAME, 'azure-resource-manager-schemas'), eq(SPEC_REPO, 'azure-rest-api-specs')) + condition: or(ne(variables['SDK_REPO_NAME'], 'azure-resource-manager-schemas'), eq(variables['SPEC_REPO'], 'azure-rest-api-specs')) steps: - checkout: none - script: | From 9ceccde9a66820719bff57fdc4101438349167bb Mon Sep 17 00:00:00 2001 From: Lei Ni <7233663+leni-msft@users.noreply.github.com> Date: Wed, 23 Sep 2020 13:01:51 +0800 Subject: [PATCH 5/8] Update SDKAutomation.yml for Azure Pipelines --- .azure-pipelines/SDKAutomation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/SDKAutomation.yml b/.azure-pipelines/SDKAutomation.yml index 24257027af2a..5f58ad91b514 100644 --- a/.azure-pipelines/SDKAutomation.yml +++ b/.azure-pipelines/SDKAutomation.yml @@ -43,7 +43,7 @@ jobs: SDK_REPO_NAME: azure-sdk-for-trenton Schema: SDK_REPO_NAME: azure-resource-manager-schemas - condition: or(ne(variables['SDK_REPO_NAME'], 'azure-resource-manager-schemas'), eq(variables['SPEC_REPO'], 'azure-rest-api-specs')) + condition: or(ne(variables['SDK_REPO_NAME'], 'azure-resource-manager-schemas'), endsWith(variables['SPEC_REPO'], '/azure-rest-api-specs')) steps: - checkout: none - script: | From 123144012cfadcd608df6f678b0a5ce9308ff44c Mon Sep 17 00:00:00 2001 From: Lei Ni <7233663+leni-msft@users.noreply.github.com> Date: Wed, 23 Sep 2020 13:12:08 +0800 Subject: [PATCH 6/8] Update SDKAutomation.yml for Azure Pipelines --- .azure-pipelines/SDKAutomation.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.azure-pipelines/SDKAutomation.yml b/.azure-pipelines/SDKAutomation.yml index 5f58ad91b514..4357531dfb9d 100644 --- a/.azure-pipelines/SDKAutomation.yml +++ b/.azure-pipelines/SDKAutomation.yml @@ -45,6 +45,7 @@ jobs: SDK_REPO_NAME: azure-resource-manager-schemas condition: or(ne(variables['SDK_REPO_NAME'], 'azure-resource-manager-schemas'), endsWith(variables['SPEC_REPO'], '/azure-rest-api-specs')) steps: + - script: printenv - checkout: none - script: | curl \ From 6d2d7122383acbbb63efdef73a22b3903d238eeb Mon Sep 17 00:00:00 2001 From: Lei Ni <7233663+leni-msft@users.noreply.github.com> Date: Wed, 23 Sep 2020 13:13:41 +0800 Subject: [PATCH 7/8] Update SDKAutomation.yml for Azure Pipelines --- .azure-pipelines/SDKAutomation.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.azure-pipelines/SDKAutomation.yml b/.azure-pipelines/SDKAutomation.yml index 4357531dfb9d..5f58ad91b514 100644 --- a/.azure-pipelines/SDKAutomation.yml +++ b/.azure-pipelines/SDKAutomation.yml @@ -45,7 +45,6 @@ jobs: SDK_REPO_NAME: azure-resource-manager-schemas condition: or(ne(variables['SDK_REPO_NAME'], 'azure-resource-manager-schemas'), endsWith(variables['SPEC_REPO'], '/azure-rest-api-specs')) steps: - - script: printenv - checkout: none - script: | curl \ From 15f3bd01e2dd112131ef5fcaef2c6951fd5ad4d9 Mon Sep 17 00:00:00 2001 From: Lei Ni <7233663+leni-msft@users.noreply.github.com> Date: Wed, 23 Sep 2020 13:18:07 +0800 Subject: [PATCH 8/8] Update SDKAutomation.yml for Azure Pipelines --- .azure-pipelines/SDKAutomation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/SDKAutomation.yml b/.azure-pipelines/SDKAutomation.yml index 5f58ad91b514..982a0fd77d77 100644 --- a/.azure-pipelines/SDKAutomation.yml +++ b/.azure-pipelines/SDKAutomation.yml @@ -43,7 +43,6 @@ jobs: SDK_REPO_NAME: azure-sdk-for-trenton Schema: SDK_REPO_NAME: azure-resource-manager-schemas - condition: or(ne(variables['SDK_REPO_NAME'], 'azure-resource-manager-schemas'), endsWith(variables['SPEC_REPO'], '/azure-rest-api-specs')) steps: - checkout: none - script: | @@ -80,6 +79,7 @@ jobs: -e AZURE_DEVOPS_EXT_PAT \ -e BUILD_ID \ sdk-automation:latest npm start + condition: or(ne(variables['SDK_REPO_NAME'], 'azure-resource-manager-schemas'), endsWith(variables['SPEC_REPO'], '/azure-rest-api-specs')) env: BLOB_STORAGE_NAME: $(blob-storage-name) BLOB_STORAGE_KEY: $(blob-storage-key)