From 9ec515ea9a77691921349079bc4c8b58be554ca8 Mon Sep 17 00:00:00 2001 From: Sicong Jia Date: Mon, 29 Apr 2024 17:32:19 -0700 Subject: [PATCH 1/2] Add random generate password --- azure-pipelines.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 599d0398b..c96ea990e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,7 +7,6 @@ variables: sqlsrv_db: 'sqlsrv_testdb' pdo_sqlsrv_db: 'pdo_sqlsrv_testdb' uid: 'sa' - pwd: 'Password456!' trigger: - dev @@ -17,7 +16,13 @@ pr: - dev jobs: +- job: Generate_Password +steps: + - script: | + echo "##vso[task.setvariable variable=pwd;]$(openssl rand -hex 10)" + - job: macOS + dependsOn: Generate_Password pool: vmImage: 'macos-latest' steps: @@ -61,6 +66,7 @@ jobs: displayName: 'Build and install drivers' - job: Linux + dependsOn: Generate_Password variables: phpver: 8.1 pool: @@ -235,6 +241,7 @@ jobs: condition: always() - job: Windows + dependsOn: Generate_Password variables: phpVersion: 8.1 pool: From 1b7174619c791f0c9695129877beed1c390edaa7 Mon Sep 17 00:00:00 2001 From: Sicong Jia Date: Mon, 29 Apr 2024 17:32:19 -0700 Subject: [PATCH 2/2] Fix yml syntax --- azure-pipelines.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c96ea990e..3cdab677b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,13 +16,8 @@ pr: - dev jobs: -- job: Generate_Password -steps: - - script: | - echo "##vso[task.setvariable variable=pwd;]$(openssl rand -hex 10)" - job: macOS - dependsOn: Generate_Password pool: vmImage: 'macos-latest' steps: @@ -66,7 +61,6 @@ steps: displayName: 'Build and install drivers' - job: Linux - dependsOn: Generate_Password variables: phpver: 8.1 pool: @@ -80,6 +74,9 @@ steps: inputs: versionSpec: '3.x' architecture: 'x64' + - bash: | + password=`tr -dc A-Za-z0-9