Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Randomize password for test pipeline #1510

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ variables:
sqlsrv_db: 'sqlsrv_testdb'
pdo_sqlsrv_db: 'pdo_sqlsrv_testdb'
uid: 'sa'
pwd: 'Password456!'

trigger:
- dev
Expand All @@ -17,6 +16,7 @@ pr:
- dev

jobs:

- job: macOS
pool:
vmImage: 'macos-latest'
Expand Down Expand Up @@ -74,6 +74,9 @@ jobs:
inputs:
versionSpec: '3.x'
architecture: 'x64'
- bash: |
password=`tr -dc A-Za-z0-9 </dev/random | head -c 10; echo`
echo "##vso[task.setvariable variable=pwd;]$password"

- script: |
sudo update-alternatives --set php /usr/bin/php$(phpver)
Expand Down Expand Up @@ -248,6 +251,9 @@ jobs:
inputs:
versionSpec: '3.x'
architecture: 'x64'
- bash: |
password=`tr -dc A-Za-z0-9 </dev/random | head -c 10; echo`
echo "##vso[task.setvariable variable=pwd;]$password"

- script: |
dir C:\tools\php\php*
Expand Down
Loading