File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 3
3
- pwsh : Write-Host "##vso[build.updatebuildnumber]$env:BUILD_SOURCEBRANCHNAME-$env:BUILD_SOURCEVERSION-$((get-date).ToString("yyyyMMddhhmmss"))"
4
4
displayName : Set Build Name for Non-PR
5
5
condition : ne(variables['Build.Reason'], 'PullRequest')
6
+ - task : PowerShell@2
7
+ displayName : ' Set environment variables for VSTS (Phase 1)'
8
+ inputs :
9
+ targetType : filePath
10
+ filePath : ./tools/releaseBuild/setVstsVariables.ps1
6
11
- pwsh : |
7
- git clone https://github.com/PowerShell/PowerShellEditorServices.git ../PowerShellEditorServices
12
+ Write-Host "Cloning '$env:PSES_BRANCH' branch from '$env:PSES_FORK/PowerShellEditorServices'"
13
+ git clone --single-branch --branch $env:PSES_BRANCH https://github.com/$env:PSES_FORK/PowerShellEditorServices.git ../PowerShellEditorServices
8
14
Install-Module InvokeBuild -Scope CurrentUser -Force
9
15
Install-Module PlatyPS -Scope CurrentUser -Force
10
16
# Build
Original file line number Diff line number Diff line change 1
1
$vstsVariables = @ {
2
2
PSES_BRANCH = ' master'
3
+ PSES_FORK = ' PowerShell'
3
4
}
4
5
5
6
# Use VSTS's API to set an env vars
You can’t perform that action at this time.
0 commit comments