From 27a7c47d83c7a48b84139ebd4236957c96467e34 Mon Sep 17 00:00:00 2001 From: William Craig Date: Tue, 17 Oct 2023 11:46:51 +0100 Subject: [PATCH] removed reform IAC --- azure-pipelines.beta.yml | 365 ------------------------------- azure-pipelines.nightly.yml | 425 ------------------------------------ azure-pipelines.release.yml | 389 --------------------------------- azure-pipelines.yml | 365 ------------------------------- 4 files changed, 1544 deletions(-) delete mode 100644 azure-pipelines.beta.yml delete mode 100644 azure-pipelines.nightly.yml delete mode 100644 azure-pipelines.release.yml delete mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.beta.yml b/azure-pipelines.beta.yml deleted file mode 100644 index 2bb8505dc..000000000 --- a/azure-pipelines.beta.yml +++ /dev/null @@ -1,365 +0,0 @@ -parameters: -- name: deploymentBranch - displayName: Branch to Deploy - type: string - default: refs/heads/master - -- name: environment - displayName: Environment - type: string - default: AAT - values: - - Preview - - Dev - - AAT - - Sandbox - - Test1 - - Test2 - - Demo - - Preprod - - Prod - -- name: deviceConfiguration - displayName: Device Configurations - type: object - default: - - OS: Windows - Browser: Chrome - BrowserVersion: Beta - DeviceType: Desktop - DeviceName: - TestCaseFilter: TestCategory=Smoketest-Extended - - OS: MacOs - Browser: Chrome - BrowserVersion: Beta - DeviceType: Desktop - DeviceName: - TestCaseFilter: TestCategory=Smoketest-Extended - -- name: prodEnvs - displayName: Environments Using Prod Subscription - type: object - default: - - Prod - - Preprod - -# Set variables once -variables: - - group: vh-domains-and-urls - - group: vh-apps-settings-generic - - group: vh-admin-web - - group: vh test users - - group: Saucelabs - - ${{ if containsValue(parameters.prodEnvs, parameters.environment) }}: - - group: vh-prod - - ${{ if not(containsValue(parameters.prodEnvs, parameters.environment)) }}: - - group: vh-preview - -trigger: none -pr: none -schedules: -- cron: "0 17 * * 0" - displayName: Weekly Beta build - always: true - branches: - include: - - master - -resources: - repositories: - - repository: templates - type: github - name: hmcts/azure-devops-templates - ref: refs/heads/master - endpoint: hmcts - pipelines: - - pipeline: CI - source: hmcts.vh-admin-web - -stages: - - template: templates/vh-release.yml@templates - parameters: - environments: - - ${{ parameters.environment }} - deploymentBranch: ${{ parameters.deploymentBranch }} - releaseParameters: - subscription: $(env_Subscription) - secrets_KeyVault: $(env_Secret_KeyVault) - secrets_Subscription: $(env_Secret_Subscription) - devOpsResource: vh_admin_web - appName: vh-admin-web-$(environment) - resourceGroup: vh-admin-web-$(environment) - testCaseFilter: TestCategory=Smoketest - dependentApps: - - name: vh-user-api-$(environment) - resourceGroup: vh-user-api-$(environment) - healthEndpoint: $(user_api_url)healthcheck/health - - name: vh-bookings-api-$(environment) - resourceGroup: vh-bookings-api-$(environment) - healthEndpoint: $(bookings_api_url)healthcheck/health - - name: vh-video-api-$(environment) - resourceGroup: vh-video-api-$(environment) - healthEndpoint: $(video_api_url)healthcheck/health - - name: vh-notification-api-$(environment) - resourceGroup: vh-notification-api-$(environment) - healthEndpoint: $(notification_api_url)healthcheck/health - - name: vh-test-api-$(environment) - resourceGroup: vh-test-api-$(environment) - healthEndpoint: $(test_api_url)health/health - variables: - - group: vh-wowza-dev - env: - - Preview - - Dev - - AAT - - Sandbox - - Test1 - - Test2 - - group: vh-wowza-demo - env: - - Demo - - group: vh-wowza-preprod - env: - - Preprod - - group: vh-wowza-prod - env: - - Prod - - group: KinlyConfiguration_Test - env: - - Preview - - Dev - - AAT - - Sandbox - - Test1 - - Test2 - - group: KinlyConfiguration_Test2 - env: - - Demo - - group: KinlyConfiguration_Preprod - env: - - Preprod - - group: KinlyConfiguration_Prod - env: - - Prod - - group: govuk-notify-preview - env: - - Preview - - group: govuk-notify-dev - env: - - Dev - - group: govuk-notify-aat - env: - - AAT - - group: govuk-notify-sandbox - env: - - Sandbox - - group: govuk-notify-test1 - env: - - Test1 - - Test2 - - group: govuk-notify-demo - env: - - Demo - - group: govuk-notify-preprod - env: - - PreProd - - group: govuk-notify-prod - env: - - Prod - appSettings: - - name: ApplicationInsights:InstrumentationKey - value: vh-core-infra-AppInsightsKey - secret: true - - name: AppInsightsKey - value: vh-core-infra-AppInsightsKey - secret: true - - name: IsLive - value: $(IsLive) - - # AzureAd - - name: AzureAd:ClientId - value: vh-admin-web-appid-v2 - secret: true - - name: AzureAd:ClientSecret - value: vh-admin-web-key-v2 - secret: true - - name: AzureAd:PostLogoutRedirectUri - slot: - deployment: - value: $(admin_web_url_staging)logout - active: - value: $(admin_web_url)logout - - name: AzureAd:RedirectUri - slot: - deployment: - value: $(admin_web_url_staging)home - active: - value: $(admin_web_url)home - - name: AzureAd:TenantId - value: tenantid - secret: true - - # DOM1 - - name: DOM1:TenantId - value: dom1--tenant--id - secret: true - - name: DOM1:ClientId - value: dom1--adminweb--clientid - secret: true - - # Testing - - name: TestUserSecrets:TestUsernameStem - value: $(TestUserSecrets:TestUsernameStem) - - # VhServices - - name: VhServices:BookingsApiResourceId - value: vh-bookings-api-identifieruris - secret: true - - name: VhServices:BookingsApiUrl - value: $(bookings_api_url) - - name: VhServices:UserApiResourceId - value: vh-user-api-identifieruris - secret: true - - name: VhServices:UserApiUrl - value: $(user_api_url) - - name: VhServices:VideoApiResourceId - value: vh-video-api-identifieruris - secret: true - - name: VhServices:VideoApiUrl - value: $(video_api_url) - - name: VhServices:NotificationApiUrl - value: $(notification_api_url) - - name: VhServices:NotificationApiResourceId - value: vh-notification-api-identifieruris - secret: true - - name: VhServices:LaunchDarklyClientId - value: vh-launchdarkly-client-id - secret: true - - name: VhServices:VideoWebUrl - value: $(video_web_url) - - # Feature Toggle - - name: FeatureToggle:SDKKey - value: vh-admin-web-Feature-Toggle - secret: true - - # GOV Notify Configuration - - name: NotifyConfiguration:ApiKey - value: $(notify-api-key) - - # Kinly - - name: KinlyConfiguration:ConferencePhoneNumber - value: $(ConferencePhoneNumber) - - name: KinlyConfiguration:ConferencePhoneNumberWelsh - value: $(ConferencePhoneNumberWelsh) - - name: KinlyConfiguration:JoinByPhoneFromDate - value: $(JoinByPhoneFromDate) - - acceptanceTestSettings: - # VhServices - - name: VhServices:AdminWebUrl - slot: - deployment: - value: $(admin_web_url_staging) - active: - value: $(admin_web_url) - - name: VhServices:AdminWebResourceId - value: vh-admin-web-identifieruris - secret: true - - name: VhServices:VideoApiUrl - value: $(video_api_url) - - name: VhServices:VideoApiResourceId - value: vh-video-api-identifieruris - secret: true - - name: VhServices:UserApiUrl - value: $(user_api_url) - - name: VhServices:UserApiResourceId - value: vh-user-api-identifieruris - secret: true - - name: VhServices:TestApiUrl - value: $(test_api_url) - - name: VhServices:TestApiResourceId - value: vh-test-api-identifieruris - secret: true - - name: VhServices:BookingsApiUrl - value: $(bookings_api_url) - - name: VhServices:BookingsApiResourceId - value: vh-bookings-api-identifieruris - secret: true - - name: VhServices:NotificationApiUrl - value: $(notification_api_url) - - name: VhServices:LaunchDarklyClientId - value: vh-launchdarkly-client-id - secret: true - - name: VhServices:NotificationApiResourceId - value: vh-notification-api-identifieruris - secret: true - # Kinly - - name: KinlyConfiguration:ConferencePhoneNumber - value: $(ConferencePhoneNumber) - - name: KinlyConfiguration:ConferencePhoneNumberWelsh - value: $(ConferencePhoneNumberWelsh) - - name: KinlyConfiguration:JoinByPhoneFromDate - value: $(JoinByPhoneFromDate) - - # Feature Toggle - - name: FeatureToggle:SDKKey - value: vh-admin-web-Feature-Toggle - secret: true - - # GOV Notify Configuration - - name: NotifyConfiguration:ApiKey - value: $(notify-api-key) - - # AzureAd - - name: AzureAd:TenantId - value: tenantid - secret: true - - name: AzureAd:ClientId - value: vh-video-web-appid-v2 - secret: true - - name: AzureAd:ClientSecret - value: vh-video-web-key-v2 - secret: true - - name: AzureAd:PostLogoutRedirectUri - slot: true - - name: AzureAd:RedirectUri - slot: true - - name: AzureAd:TemporaryPassword - value: $(TemporaryPassword) - - # DOM1 - - name: DOM1:TenantId - value: dom1--tenant--id - secret: true - - name: DOM1:ClientId - value: dom1--adminweb--clientid - secret: true - - # Testing - - name: TestUserSecrets:TestUsernameStem - value: $(TestUserSecrets:TestUsernameStem) - - name: TestUserSecrets:TestUserPassword - value: $(TestUserSecrets:TestApiUserPassword) - - # SauceLabs - - name: Saucelabs:Username - value: $(Saucelabs:Username) - - name: Saucelabs:AccessKey - value: $(Saucelabs:AccessKey) - - name: Saucelabs:RealDeviceApiKey - value: $(RealDeviceApiKey) - - # WowzaConfiguration - - name: WowzaConfiguration:StorageAccountName - value: $(wowza_storageAccountName) - - name: WowzaConfiguration:StorageAccountKey - value: $(wowza_storageAccountKey) - - name: WowzaConfiguration:StorageContainerName - value: $(wowza_storageContainerName) - - # Ejud - test setting only - - name: UsingEjud - value: $(UsingEjud) - runMultiDeviceTests: true - deviceConfiguration: ${{ parameters.deviceConfiguration }} \ No newline at end of file diff --git a/azure-pipelines.nightly.yml b/azure-pipelines.nightly.yml deleted file mode 100644 index c65dddd80..000000000 --- a/azure-pipelines.nightly.yml +++ /dev/null @@ -1,425 +0,0 @@ -parameters: -- name: deploymentBranch - displayName: Branch to Deploy - type: string - default: refs/heads/master - -- name: environment - displayName: Environment - type: string - default: AAT - values: - - Preview - - Dev - - AAT - - Sandbox - - Test1 - - Test2 - - Demo - - Preprod - - Prod - -- name: deviceConfiguration - displayName: Device Configurations - type: object - default: - - OS: Windows - Browser: Chrome - BrowserVersion: Latest - DeviceType: Desktop - DeviceName: - TestCaseFilter: TestCategory!=UnsupportedBrowser - - OS: Windows - Browser: Firefox - BrowserVersion: Latest - DeviceType: Desktop - DeviceName: - TestCaseFilter: TestCategory=UnsupportedBrowser - - OS: Windows - Browser: EdgeChromium - BrowserVersion: Latest - DeviceType: Desktop - DeviceName: - TestCaseFilter: TestCategory=UnsupportedBrowser - - OS: MacOS - Browser: Safari - BrowserVersion: Latest - DeviceType: Desktop - DeviceName: - TestCaseFilter: TestCategory=UnsupportedBrowser - - OS: MacOS - Browser: Chrome - BrowserVersion: Latest - DeviceType: Desktop - DeviceName: - TestCaseFilter: TestCategory=Smoketest-Extended - - OS: MacOS - Browser: Firefox - BrowserVersion: Latest - DeviceType: Desktop - DeviceName: - TestCaseFilter: TestCategory=UnsupportedBrowser - - OS: MacOS - Browser: EdgeChromium - BrowserVersion: Latest - DeviceType: Desktop - DeviceName: - TestCaseFilter: TestCategory=UnsupportedBrowser - - OS: Windows - Browser: Ie11 - BrowserVersion: Latest - DeviceType: Desktop - DeviceName: - TestCaseFilter: TestCategory=UnsupportedBrowser - - OS: iOS - Browser: Safari - BrowserVersion: - DeviceType: Tablet - DeviceName: - TestCaseFilter: TestCategory=UnsupportedDevice - - OS: Android - Browser: Chrome - BrowserVersion: - DeviceType: Tablet - DeviceName: - TestCaseFilter: TestCategory=UnsupportedDevice - - OS: iOS - Browser: Safari - BrowserVersion: - DeviceType: Mobile - DeviceName: - TestCaseFilter: TestCategory=UnsupportedDevice - - OS: Android - Browser: Chrome - BrowserVersion: - DeviceType: Mobile - DeviceName: - TestCaseFilter: TestCategory=UnsupportedDevice - -- name: prodEnvs - displayName: Environments Using Prod Subscription - type: object - default: - - Prod - - Preprod - -# Set variables once -variables: - - group: vh-domains-and-urls - - group: vh-apps-settings-generic - - group: vh-admin-web - - group: vh test users - - group: Saucelabs - - ${{ if containsValue(parameters.prodEnvs, parameters.environment) }}: - - group: vh-prod - - ${{ if not(containsValue(parameters.prodEnvs, parameters.environment)) }}: - - group: vh-preview - -trigger: none -pr: none -schedules: -- cron: "0 19 * * *" - displayName: Daily midnight build - always: true - branches: - include: - - master - -resources: - repositories: - - repository: templates - type: github - name: hmcts/azure-devops-templates - ref: refs/heads/master - endpoint: hmcts - pipelines: - - pipeline: CI - source: hmcts.vh-admin-web - -stages: - - template: templates/vh-release.yml@templates - parameters: - environments: - - ${{ parameters.environment }} - deploymentBranch: ${{ parameters.deploymentBranch }} - releaseParameters: - subscription: $(env_Subscription) - secrets_KeyVault: $(env_Secret_KeyVault) - secrets_Subscription: $(env_Secret_Subscription) - devOpsResource: vh_admin_web - appName: vh-admin-web-$(environment) - resourceGroup: vh-admin-web-$(environment) - testCaseFilter: TestCategory=smoketest - dependentApps: - - name: vh-user-api-$(environment) - resourceGroup: vh-user-api-$(environment) - healthEndpoint: $(user_api_url)healthcheck/health - - name: vh-bookings-api-$(environment) - resourceGroup: vh-bookings-api-$(environment) - healthEndpoint: $(bookings_api_url)healthcheck/health - - name: vh-video-api-$(environment) - resourceGroup: vh-video-api-$(environment) - healthEndpoint: $(video_api_url)healthcheck/health - - name: vh-notification-api-$(environment) - resourceGroup: vh-notification-api-$(environment) - healthEndpoint: $(notification_api_url)healthcheck/health - - name: vh-test-api-$(environment) - resourceGroup: vh-test-api-$(environment) - healthEndpoint: $(test_api_url)health/health - variables: - - group: vh-wowza-dev - env: - - Preview - - Dev - - AAT - - Sandbox - - Test1 - - Test2 - - group: vh-wowza-demo - env: - - Demo - - group: vh-wowza-preprod - env: - - Preprod - - group: vh-wowza-prod - env: - - Prod - - group: KinlyConfiguration_Test - env: - - Preview - - Dev - - AAT - - Sandbox - - Test1 - - Test2 - - group: KinlyConfiguration_Test2 - env: - - Demo - - group: KinlyConfiguration_Preprod - env: - - Preprod - - group: KinlyConfiguration_Prod - env: - - Prod - - group: govuk-notify-preview - env: - - Preview - - group: govuk-notify-dev - env: - - Dev - - group: govuk-notify-aat - env: - - AAT - - group: govuk-notify-sandbox - env: - - Sandbox - - group: govuk-notify-test1 - env: - - Test1 - - Test2 - - group: govuk-notify-demo - env: - - Demo - - group: govuk-notify-preprod - env: - - PreProd - - group: govuk-notify-prod - env: - - Prod - appSettings: - - name: ApplicationInsights:InstrumentationKey - value: vh-core-infra-AppInsightsKey - secret: true - - name: AppInsightsKey - value: vh-core-infra-AppInsightsKey - secret: true - - name: IsLive - value: $(IsLive) - - # Dom1 - - name: DOM1:TenantId - value: dom1--tenant--id - secret: true - - name: DOM1:ClientId - value: dom1--adminweb--clientid - secret: true - - # AzureAd - - name: AzureAd:ClientId - value: vh-admin-web-appid-v2 - secret: true - - name: AzureAd:ClientSecret - value: vh-admin-web-key-v2 - secret: true - - name: AzureAd:PostLogoutRedirectUri - slot: - deployment: - value: $(admin_web_url_staging)logout - active: - value: $(admin_web_url)logout - - name: AzureAd:RedirectUri - slot: - deployment: - value: $(admin_web_url_staging)home - active: - value: $(admin_web_url)home - - name: AzureAd:TenantId - value: tenantid - secret: true - - # Testing - - name: TestUserSecrets:TestUsernameStem - value: $(TestUserSecrets:TestUsernameStem) - - # VhServices - - name: VhServices:BookingsApiResourceId - value: vh-bookings-api-identifieruris - secret: true - - name: VhServices:BookingsApiUrl - value: $(bookings_api_url) - - name: VhServices:UserApiResourceId - value: vh-user-api-identifieruris - secret: true - - name: VhServices:UserApiUrl - value: $(user_api_url) - - name: VhServices:VideoApiResourceId - value: vh-video-api-identifieruris - secret: true - - name: VhServices:VideoApiUrl - value: $(video_api_url) - - name: VhServices:NotificationApiResourceId - value: vh-notification-api-identifieruris - secret: true - - name: VhServices:NotificationApiUrl - value: $(notification_api_url) - - name: VhServices:VideoWebUrl - value: $(video_web_url) - - name: VhServices:LaunchDarklyClientId - value: vh-launchdarkly-client-id - secret: true - # Kinly - - name: KinlyConfiguration:ConferencePhoneNumber - value: $(ConferencePhoneNumber) - - name: KinlyConfiguration:ConferencePhoneNumberWelsh - value: $(ConferencePhoneNumberWelsh) - - name: KinlyConfiguration:JoinByPhoneFromDate - value: $(JoinByPhoneFromDate) - - # Feature Toggle - - name: FeatureToggle:SDKKey - value: vh-admin-web-Feature-Toggle - secret: true - - # GOV Notify Configuration - - name: NotifyConfiguration:ApiKey - value: $(notify-api-key) - - acceptanceTestSettings: - # VhServices - - name: VhServices:AdminWebUrl - slot: - deployment: - value: $(admin_web_url_staging) - active: - value: $(admin_web_url) - - name: VhServices:AdminWebResourceId - value: vh-admin-web-identifieruris - secret: true - - name: VhServices:VideoApiUrl - value: $(video_api_url) - - name: VhServices:VideoApiResourceId - value: vh-video-api-identifieruris - secret: true - - name: VhServices:UserApiUrl - value: $(user_api_url) - - name: VhServices:UserApiResourceId - value: vh-user-api-identifieruris - secret: true - - name: VhServices:TestApiUrl - value: $(test_api_url) - - name: VhServices:TestApiResourceId - value: vh-test-api-identifieruris - secret: true - - name: VhServices:BookingsApiUrl - value: $(bookings_api_url) - - name: VhServices:BookingsApiResourceId - value: vh-bookings-api-identifieruris - secret: true - - name: VhServices:NotificationApiResourceId - value: vh-notification-api-identifieruris - secret: true - - name: VhServices:LaunchDarklyClientId - value: vh-launchdarkly-client-id - secret: true - - name: VhServices:NotificationApiUrl - value: $(notification_api_url) - - # Dom1 - - name: DOM1:TenantId - value: dom1--tenant--id - secret: true - - name: DOM1:ClientId - value: dom1--adminweb--clientid - secret: true - - # AzureAd - - name: AzureAd:TenantId - value: tenantid - secret: true - - name: AzureAd:ClientId - value: vh-video-web-appid-v2 - secret: true - - name: AzureAd:ClientSecret - value: vh-video-web-key-v2 - secret: true - - name: AzureAd:PostLogoutRedirectUri - slot: true - - name: AzureAd:RedirectUri - slot: true - - name: AzureAd:TemporaryPassword - value: $(TemporaryPassword) - - # Testing - - name: TestUserSecrets:TestUsernameStem - value: $(TestUserSecrets:TestUsernameStem) - - name: TestUserSecrets:TestUserPassword - value: $(TestUserSecrets:TestApiUserPassword) - - # Feature Toggle - - name: FeatureToggle:SDKKey - value: vh-admin-web-Feature-Toggle - secret: true - - # GOV Notify Configuration - - name: NotifyConfiguration:ApiKey - value: $(notify-api-key) - - # Kinly - - name: KinlyConfiguration:ConferencePhoneNumber - value: $(ConferencePhoneNumber) - - name: KinlyConfiguration:ConferencePhoneNumberWelsh - value: $(ConferencePhoneNumberWelsh) - - name: KinlyConfiguration:JoinByPhoneFromDate - value: $(JoinByPhoneFromDate) - - # SauceLabs - - name: Saucelabs:Username - value: $(Saucelabs:Username) - - name: Saucelabs:AccessKey - value: $(Saucelabs:AccessKey) - - name: Saucelabs:RealDeviceApiKey - value: $(RealDeviceApiKey) - - # WowzaConfiguration - - name: WowzaConfiguration:StorageAccountName - value: $(wowza_storageAccountName) - - name: WowzaConfiguration:StorageAccountKey - value: $(wowza_storageAccountKey) - - name: WowzaConfiguration:StorageContainerName - value: $(wowza_storageContainerName) - - # Ejud - test setting only - - name: UsingEjud - value: $(UsingEjud) - runMultiDeviceTests: true - deviceConfiguration: ${{ parameters.deviceConfiguration }} \ No newline at end of file diff --git a/azure-pipelines.release.yml b/azure-pipelines.release.yml deleted file mode 100644 index caa4cb086..000000000 --- a/azure-pipelines.release.yml +++ /dev/null @@ -1,389 +0,0 @@ -parameters: -- name: deploymentBranch - displayName: Branch to Deploy - type: string - default: refs/heads/master - -- name: environment - displayName: Environment - type: string - default: Sandbox - values: - - Preview - - Dev - - AAT - - Sandbox - - Test1 - - Test2 - - Demo - - Preprod - - Prod - -- name: RunZap - displayName: Execute ZAP Tests - type: boolean - default: false - -- name: prodEnvs - displayName: Environments Using Prod Subscription - type: object - default: - - Prod - - Preprod - -# Set variables once -variables: - - group: vh-domains-and-urls - - group: vh-apps-settings-generic - - group: vh-admin-web - - group: vh test users - - group: Saucelabs - - ${{ if ne(variables['Build.Reason'], 'ResourceTrigger') }}: - - ${{ if containsValue(parameters.prodEnvs, parameters.environment) }}: - - group: vh-prod - - ${{ if not(containsValue(parameters.prodEnvs, parameters.environment)) }}: - - group: vh-preview - - ${{ if eq(variables['Build.Reason'], 'ResourceTrigger') }}: - - ${{ if or(startswith(variables['Build.SourceBranch'], 'refs/heads/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/hotfix/')) }}: - - group: vh-prod - - ${{ if not(or(startswith(variables['Build.SourceBranch'], 'refs/heads/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/hotfix/'))) }}: - - group: vh-preview - -trigger: none -pr: none - -resources: - repositories: - - repository: templates - type: github - name: hmcts/azure-devops-templates - ref: refs/heads/master - endpoint: hmcts - pipelines: - - pipeline: CI - source: hmcts.vh-admin-web - trigger: - branches: - - master - - hotfix/* - - release/* - -stages: - - template: templates/vh-release.yml@templates - parameters: - netVersion: 6.x - ${{ if ne(variables['Build.Reason'], 'ResourceTrigger') }}: - environments: - - ${{ parameters.environment }} - deploymentBranch: ${{ parameters.deploymentBranch }} - ${{ if eq(variables['Build.Reason'], 'ResourceTrigger') }}: - deploymentBranch: resources.pipeline.CI.sourceBranch - releaseParameters: - runZapTests: ${{ parameters.RunZap }} - subscription: $(env_Subscription) - secrets_KeyVault: $(env_Secret_KeyVault) - secrets_Subscription: $(env_Secret_Subscription) - devOpsResource: vh_admin_web - appName: vh-admin-web-$(environment) - resourceGroup: vh-admin-web-$(environment) - testCaseFilter: TestCategory=Smoketest - dependentApps: - - name: vh-user-api-$(environment) - resourceGroup: vh-user-api-$(environment) - healthEndpoint: $(user_api_url)healthcheck/health - - name: vh-bookings-api-$(environment) - resourceGroup: vh-bookings-api-$(environment) - healthEndpoint: $(bookings_api_url)healthcheck/health - - name: vh-video-api-$(environment) - resourceGroup: vh-video-api-$(environment) - healthEndpoint: $(video_api_url)healthcheck/health - - name: vh-notification-api-$(environment) - resourceGroup: vh-notification-api-$(environment) - healthEndpoint: $(notification_api_url)healthcheck/health - - name: vh-test-api-$(environment) - resourceGroup: vh-test-api-$(environment) - healthEndpoint: $(test_api_url)health/health - variables: - - group: vh-wowza-dev - env: - - Preview - - Dev - - AAT - - Sandbox - - Test1 - - Test2 - - group: vh-wowza-demo - env: - - Demo - - group: vh-wowza-preprod - env: - - Preprod - - group: vh-wowza-prod - env: - - Prod - - group: KinlyConfiguration_Dev - env: - - Sandbox - - group: KinlyConfiguration_Test - env: - - Preview - - Dev - - AAT - - Test1 - - Test2 - - group: KinlyConfiguration_Test2 - env: - - Demo - - group: KinlyConfiguration_Preprod - env: - - Preprod - - group: KinlyConfiguration_Prod - env: - - Prod - - name: AppUri - value: $(AppUri_Prod) - env: - - Prod - - group: vh-video-web-nonprod - env: - - Preview - - Dev - - Demo - - AAT - - Sandbox - - Test1 - - Test2 - - group: vh-video-web-preprod - env: - - Preprod - - group: vh-video-web-prod - env: - - Prod - - name: VanityUrl - value: $(admin_web_domain_prod) - env: - - Prod - - Preprod - - group: govuk-notify-preview - env: - - Preview - - group: govuk-notify-dev - env: - - Dev - - group: govuk-notify-aat - env: - - AAT - - group: govuk-notify-sandbox - env: - - Sandbox - - group: govuk-notify-test1 - env: - - Test1 - - Test2 - - group: govuk-notify-demo - env: - - Demo - - group: govuk-notify-preprod - env: - - PreProd - - group: govuk-notify-prod - env: - - Prod - appSettings: - - name: ApplicationInsights:InstrumentationKey - value: vh-core-infra-AppInsightsKey - secret: true - - name: AppInsightsKey - value: vh-core-infra-AppInsightsKey - secret: true - - name: IsLive - value: $(IsLive) - - # Feature Toggle - - name: FeatureToggle:SDKKey - value: vh-admin-web-Feature-Toggle - secret: true - - # DOM1 - - name: DOM1:TenantId - value: dom1--tenant--id - secret: true - - name: DOM1:ClientId - value: dom1--adminweb--clientid - secret: true - - # AzureAd - - name: AzureAd:ClientId - value: vh-admin-web-appid-v2 - secret: true - - name: AzureAd:ClientSecret - value: vh-admin-web-key-v2 - secret: true - - name: AzureAd:PostLogoutRedirectUri - slot: - deployment: - value: $(admin_web_url_staging)logout - active: - value: $(admin_web_url)logout - - name: AzureAd:RedirectUri - slot: - deployment: - value: $(admin_web_url_staging)home - active: - value: $(admin_web_url)home - - name: AzureAd:TenantId - value: tenantid - secret: true - - # Testing - - name: TestUserSecrets:TestUsernameStem - value: $(TestUserSecrets:TestUsernameStem) - - # VhServices - - name: VhServices:BookingsApiResourceId - value: vh-bookings-api-identifieruris - secret: true - - name: VhServices:BookingsApiUrl - value: $(bookings_api_url) - - name: VhServices:UserApiResourceId - value: vh-user-api-identifieruris - secret: true - - name: VhServices:UserApiUrl - value: $(user_api_url) - - name: VhServices:VideoApiResourceId - value: vh-video-api-identifieruris - secret: true - - name: VhServices:VideoApiUrl - value: $(video_api_url) - - name: VhServices:NotificationApiResourceId - value: vh-notification-api-identifieruris - secret: true - - name: VhServices:NotificationApiUrl - value: $(notification_api_url) - - name: VhServices:ValidateEmail - value: $(reformemail) - - name: VhServices:VideoWebUrl - value: $(video_web_url) - - name: VhServices:LaunchDarklyClientId - value: vh-launchdarkly-client-id - secret: true - - - # GOV Notify Configuration - - name: NotifyConfiguration:ApiKey - value: $(notify-api-key) - - # Kinly - - name: KinlyConfiguration:ConferencePhoneNumber - value: $(ConferencePhoneNumber) - - name: KinlyConfiguration:ConferencePhoneNumberWelsh - value: $(ConferencePhoneNumberWelsh) - - name: KinlyConfiguration:JoinByPhoneFromDate - value: $(JoinByPhoneFromDate) - - acceptanceTestSettings: - # VhServices - - name: VhServices:AdminWebUrl - value: $(admin_web_url_staging) - - name: VhServices:AdminWebResourceId - value: vh-admin-web-identifieruris - secret: true - - name: VhServices:VideoApiUrl - value: $(video_api_url) - - name: VhServices:VideoApiResourceId - value: vh-video-api-identifieruris - secret: true - - name: VhServices:UserApiUrl - value: $(user_api_url) - - name: VhServices:UserApiResourceId - value: vh-user-api-identifieruris - secret: true - - name: VhServices:TestApiUrl - value: $(test_api_url) - - name: VhServices:TestApiResourceId - value: vh-test-api-identifieruris - secret: true - - name: VhServices:BookingsApiUrl - value: $(bookings_api_url) - - name: VhServices:BookingsApiResourceId - value: vh-bookings-api-identifieruris - secret: true - - name: VhServices:NotificationApiResourceId - value: vh-notification-api-identifieruris - secret: true - - name: VhServices:LaunchDarklyClientId - value: vh-launchdarkly-client-id - secret: true - - name: VhServices:NotificationApiUrl - value: $(notification_api_url) - - # Feature Toggle - - name: FeatureToggle:SDKKey - value: vh-admin-web-Feature-Toggle - secret: true - - # DOM1 - - name: DOM1:TenantId - value: dom1--tenant--id - secret: true - - name: DOM1:ClientId - value: dom1--adminweb--clientid - secret: true - - # AzureAd - - name: AzureAd:TenantId - value: tenantid - secret: true - - name: AzureAd:ClientId - value: vh-video-web-appid-v2 - secret: true - - name: AzureAd:ClientSecret - value: vh-video-web-key-v2 - secret: true - - name: AzureAd:PostLogoutRedirectUri - slot: true - - name: AzureAd:RedirectUri - slot: true - - name: AzureAd:TemporaryPassword - value: $(TemporaryPassword) - - name: AzureAd:ResourceId - value: vh-video-web-appid-v2 - secret: true - - # Testing - - name: TestUserSecrets:TestUsernameStem - value: $(TestUserSecrets:TestUsernameStem) - - name: TestUserSecrets:TestUserPassword - value: $(TestUserSecrets:TestApiUserPassword) - - # GOV Notify Configuration - - name: NotifyConfiguration:ApiKey - value: $(notify-api-key) - - # Kinly - - name: KinlyConfiguration:ConferencePhoneNumber - value: $(ConferencePhoneNumber) - - name: KinlyConfiguration:ConferencePhoneNumberWelsh - value: $(ConferencePhoneNumberWelsh) - - name: KinlyConfiguration:JoinByPhoneFromDate - value: $(JoinByPhoneFromDate) - - # SauceLabs - - name: Saucelabs:Username - value: $(Saucelabs:Username) - - name: Saucelabs:AccessKey - value: $(Saucelabs:AccessKey) - - name: Saucelabs:RealDeviceApiKey - value: $(RealDeviceApiKey) - - # WowzaConfiguration - - name: WowzaConfiguration:StorageAccountName - value: $(wowza_storageAccountName) - - name: WowzaConfiguration:StorageAccountKey - value: $(wowza_storageAccountKey) - - name: WowzaConfiguration:StorageContainerName - value: $(wowza_storageContainerName) - - # Ejud - test setting only - - name: UsingEjud - value: $(UsingEjud) \ No newline at end of file diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 931320c90..000000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,365 +0,0 @@ -parameters: - - name: PackageApp - displayName: Package App - type: boolean - default: true - - - name: PackageACTests - displayName: Package Acceptance Tests - type: boolean - default: true - - - name: RunUnitTests - displayName: Run Unit Tests - type: boolean - default: false - - - name: RunIntegTests - displayName: Run Integration Tests - type: boolean - default: false - - - name: RunSonarCloudTests - displayName: Run Sonar Cloud Analysis - type: boolean - default: false - - - name: RunMutationTests - displayName: Run Mutation Tests - type: boolean - default: false - - - name: RunACTests - displayName: Run Acceptance Tests - type: boolean - default: false - - - name: RunNodeTests - displayName: Run Node Tests - type: boolean - default: false - - - name: testSettings - type: object - default: - # VhServices - - name: VhServices:AdminWebUrl - value: $(admin_web_url_staging) - - name: VhServices:AdminWebResourceId - value: vh-admin-web-identifieruris - secret: true - - name: VhServices:VideoApiUrl - value: $(video_api_url) - - name: VhServices:VideoApiResourceId - value: vh-video-api-identifieruris - secret: true - - name: VhServices:UserApiUrl - value: $(user_api_url) - - name: VhServices:UserApiResourceId - value: vh-user-api-identifieruris - secret: true - - name: VhServices:NotificationApiUrl - value: $(notification_api_url) - - name: VhServices:NotificationApiResourceId - value: vh-notification-api-identifieruris - secret: true - - name: VhServices:TestApiUrl - value: $(test_api_url) - - name: VhServices:TestApiResourceId - value: vh-test-api-identifieruris - secret: true - - name: VhServices:BookingsApiUrl - value: $(bookings_api_url) - - name: VhServices:BookingsApiResourceId - value: vh-bookings-api-identifieruris - secret: true - - name: VhServices:LaunchDarklyClientId - value: vh-launchdarkly-client-id - secret: true - - name: VhServices:VideoWebUrl - value: $(video_web_url) - - # Feature Toggle - - name: FeatureToggle:SDKKey - value: vh-admin-web-Feature-Toggle - secret: true - - # DOM1 - - name: DOM1:TenantId - value: dom1--tenant--id - secret: true - - name: DOM1:ClientId - value: dom1--adminweb--clientid - secret: true - - # GOV Notify Configuration - - name: NotifyConfiguration:ApiKey - value: $(notify-api-key) - - # AzureAd - - name: AzureAd:TenantId - value: tenantid - secret: true - - name: AzureAd:ClientId - value: vh-video-web-appid-v2 - secret: true - - name: AzureAd:ClientSecret - value: vh-video-web-key-v2 - secret: true - - name: AzureAd:PostLogoutRedirectUri - slot: true - - name: AzureAd:RedirectUri - slot: true - - name: AzureAd:TemporaryPassword - value: $(TemporaryPassword) - - name: AzureAd:ResourceId - value: vh-video-web-appid-v2 - secret: true - - # Testing - - name: TestUserSecrets:TestUsernameStem - value: $(TestUserSecrets:TestUsernameStem) - - name: TestUserSecrets:TestUserPassword - value: $(TestUserSecrets:TestApiUserPassword) - - # Kinly - - name: KinlyConfiguration:ConferencePhoneNumber - value: $(ConferencePhoneNumber) - - name: KinlyConfiguration:ConferencePhoneNumberWelsh - value: $(ConferencePhoneNumberWelsh) - - name: KinlyConfiguration:JoinByPhoneFromDate - value: $(JoinByPhoneFromDate) - - # SauceLabs - - name: Saucelabs:Username - value: $(Saucelabs:Username) - - name: Saucelabs:AccessKey - value: $(Saucelabs:AccessKey) - - name: Saucelabs:RealDeviceApiKey - value: $(RealDeviceApiKey) - - # WowzaConfiguration - - name: WowzaConfiguration:StorageAccountName - value: $(wowza_storageAccountName) - - name: WowzaConfiguration:StorageAccountKey - value: $(wowza_storageAccountKey) - - name: WowzaConfiguration:StorageContainerName - value: $(wowza_storageContainerName) - - # Ejud - test setting only - - name: UsingEjud - value: $(UsingEjud) - - - name: appSettings - type: object - default: - - name: ApplicationInsights:InstrumentationKey - value: vh-core-infra-AppInsightsKey - secret: true - - name: AppInsightsKey - value: vh-core-infra-AppInsightsKey - secret: true - - name: IsLive - value: $(IsLive) - - # AzureAd - - name: AzureAd:ClientId - value: vh-admin-web-appid-v2 - secret: true - - name: AzureAd:ClientSecret - value: vh-admin-web-key-v2 - secret: true - - name: AzureAd:PostLogoutRedirectUri - slot: - deployment: - value: $(admin_web_url_staging)logout - active: - value: $(admin_web_url)logout - - name: AzureAd:RedirectUri - slot: - deployment: - value: $(admin_web_url_staging)home - active: - value: $(admin_web_url)home - - name: AzureAd:TenantId - value: tenantid - secret: true - - # DOM1 - - name: DOM1:TenantId - value: dom1--tenant--id - secret: true - - name: DOM1:ClientId - value: dom1--adminweb--clientid - secret: true - - # Testing - - name: TestUserSecrets:TestUsernameStem - value: $(TestUserSecrets:TestUsernameStem) - - # VhServices - - name: VhServices:BookingsApiResourceId - value: vh-bookings-api-identifieruris - secret: true - - name: VhServices:BookingsApiUrl - value: $(bookings_api_url) - - name: VhServices:UserApiResourceId - value: vh-user-api-identifieruris - secret: true - - name: VhServices:UserApiUrl - value: $(user_api_url) - - name: VhServices:VideoApiResourceId - value: vh-video-api-identifieruris - secret: true - - name: VhServices:VideoApiUrl - value: $(video_api_url) - - name: VhServices:NotificationApiUrl - value: $(notification_api_url) - - name: VhServices:NotificationApiResourceId - value: vh-notification-api-identifieruris - secret: true - - name: VhServices:LaunchDarklyClientId - value: vh-launchdarkly-client-id - secret: true - - name: VhServices:VideoWebUrl - value: $(video_web_url) - - # Feature Toggle - - name: FeatureToggle:SDKKey - value: vh-admin-web-Feature-Toggle - secret: true - - # GOV Notify Configuration - - name: NotifyConfiguration:ApiKey - value: $(notify-api-key) - - # Kinly - - name: KinlyConfiguration:ConferencePhoneNumber - value: $(ConferencePhoneNumber) - - name: KinlyConfiguration:ConferencePhoneNumberWelsh - value: $(ConferencePhoneNumberWelsh) - - name: KinlyConfiguration:JoinByPhoneFromDate - value: $(JoinByPhoneFromDate) - -variables: - - group: vh-domains-and-urls - - group: vh-apps-settings-generic - - group: vh-admin-web - - group: vh-preview - - group: vh test users - - group: Saucelabs - - group: vh-wowza-dev - - group: KinlyConfiguration_Test - - group: govuk-notify-preview - -trigger: - branches: - include: - - master - - release/* - - hotfix/* - -schedules: - - cron: "0 0 5,15,25 * *" - displayName: Fortnightly ci build - always: true - branches: - include: - - master - -resources: - repositories: - - repository: templates - type: github - name: hmcts/azure-devops-templates - ref: refs/heads/master - endpoint: hmcts - containers: - - container: dotnetsdk - image: sspublicsbox.azurecr.io/vh/dotnet-angular:3.1.102 - endpoint: sspublicsbox - - container: dotnetsdk-cipipeline - image: sspublicsbox.azurecr.io/vh/dotnet-angular-cipipeline:3.1.102 - endpoint: sspublicsbox - - container: node - image: node:lts-alpine - -extends: - template: stages\dotnet-package.yml@templates - parameters: - netVersion: 6.x - nodeVersion: "18.15.0" - useNugetConfig: false - nugetConfigPath: AdminWebsite - coreProjectPath: AdminWebsite/AdminWebsite - nodeProjectPath: AdminWebsite/AdminWebsite/ClientApp - PackageApp: ${{ parameters.PackageApp }} - PackageAcceptanceTests: ${{ parameters.PackageACTests }} - Test: ${{ or(parameters.RunUnitTests, parameters.RunIntegTests, parameters.RunMutationTests) }} - testParameters: - netVersion: 6.x - useNugetConfig: false - nugetConfigPath: AdminWebsite - coreProjectPath: AdminWebsite/AdminWebsite - nodeProjectPath: AdminWebsite/AdminWebsite/ClientApp - RunNode: true - unitTestProjectPath: AdminWebsite/AdminWebsite.UnitTests - integTestProjectPath: AdminWebsite/AdminWebsite.IntegrationTests - secrets_KeyVault: $(pr_Secret_KeyVault) - secrets_Subscription: $(pr_Secret_Subscription) - RunUnitTests: ${{ parameters.RunUnitTests }} - RunIntegrationTests: ${{ parameters.RunIntegTests }} - RunSonarCloud: ${{ parameters.RunSonarCloudTests }} - RunStryker: ${{ parameters.RunMutationTests }} - IntegrationTestSettings: - - ${{ each setting in parameters.testSettings }}: - - name: ${{ setting.name }} - value: ${{ setting.value }} - secret: ${{ setting.secret }} - coverletCoverageExclusions: - - "**/Testing.Common/**" - - "AdminWebsite/Views/*" - - "AdminWebsite/Pages/*" - - "AdminWebsite.UserAPI.Client/*" - - "AdminWebsite.AcceptanceTests/*" - sonarCloud_ExtraProperties: | - sonar.exclusions=**/node_modules/**, **/*.spec.ts, *.spec.ts, **/ClientApp/src/*, **/ClientApp/coverage/**/*, **/Startup.cs, **/Program.cs, **/ConfigureServicesExtensions.cs, **/Swagger/*.cs - sonar.javascript.lcov.reportPaths=**/ClientApp/coverage/lcov.info - sonar.typescript.exclusions=**/node_modules/**, **/typings.d.ts, **/main.ts, **/environments/environment*.ts, **/*routing.module.ts, **/api-client.ts - sonar.cs.opencover.reportsPaths=**/coverage.opencover.xml - sonar.coverage.exclusions=**/AdminWebsite/Configuration/**, **/AdminWebsite/Security/**, **/AdminWebsite.Testing.Common/**, **/AdminWebsite/Views/*, **/AdminWebsite/Pages/*, **/AdminWebsite.AcceptanceTests/*, **/AdminWebsite.*Tests/* - sonar.issue.ignore.multicriteria=e1 - sonar.issue.ignore.multicriteria.e1.ruleKey=typescript:S6544 - sonar.issue.ignore.multicriteria.e1.resourceKey=**/*.ts - ACTest: ${{ parameters.RunACTests }} - releaseParameters: - environment: Preview - subscription: $(pr_Subscription) - secrets_KeyVault: $(pr_Secret_KeyVault) - secrets_Subscription: $(pr_Secret_Subscription) - devOpsResource: vh_admin_web - appName: vh-admin-web-$(environment) - resourceGroup: vh-admin-web-$(environment) - appSettings: ${{ parameters.appSettings }} - testCaseFilter: TestCategory=Smoketest - dependentApps: - - name: vh-user-api-$(environment) - resourceGroup: vh-user-api-$(environment) - healthEndpoint: $(user_api_url)healthcheck/health - - name: vh-bookings-api-$(environment) - resourceGroup: vh-bookings-api-$(environment) - healthEndpoint: $(bookings_api_url)healthcheck/health - - name: vh-video-api-$(environment) - resourceGroup: vh-video-api-$(environment) - healthEndpoint: $(video_api_url)healthcheck/health - - name: vh-notification-api-$(environment) - resourceGroup: vh-notification-api-$(environment) - healthEndpoint: $(notification_api_url)healthcheck/health - - name: vh-test-api-$(environment) - resourceGroup: vh-test-api-$(environment) - healthEndpoint: $(test_api_url)health/health - acceptanceTestSettings: - - name: WebsiteUrl - value: $(admin_web_url_staging) - - ${{ each setting in parameters.testSettings }}: - - ${{ insert }}: ${{ setting }}