File tree Expand file tree Collapse file tree 1 file changed +9
-22
lines changed Expand file tree Collapse file tree 1 file changed +9
-22
lines changed Original file line number Diff line number Diff line change @@ -46,29 +46,16 @@ install:
4646 nuget install -Verbosity quiet -OutputDirectory packages secure-file -ExcludeVersion
4747
4848before_build :
49- SET CREDENTIALS_DIRECTORY="C:\projects\sdk-credentials"
50-
51-
52- git config --global credential.helper store
53-
54-
55- ECHO "https://$(%CREDENTIALS_GITHUB_TOKEN%):[email protected] `n">>"%USERPROFILE%\.git-credentials" 56-
57-
58- IF NOT DEFINED APPVEYOR_PULL_REQUEST_NUMBER (
59-
60- ECHO "APPVEYOR_PULL_REQUEST_NUMBER is null, downloading credentials to %CREDENTIALS_DIRECTORY%"
61-
62- git clone https://github.ibm.com/germanatt/sdk-credentials.git %CREDENTIALS_DIRECTORY%
63-
64- ) ELSE (
65-
66- ECHO "APPVEYOR_PULL_REQUEST_NUMBER is %APPVEYOR_PULL_REQUEST_NUMBER% - skip cloning credentials"
67-
68- )
69-
70-
49+ - ps : >-
50+ if($env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null)
51+ {
52+ Write-Output "APPVEYOR_PULL_REQUEST_NUMBER is null, cloning credentials."
53+
54+ git clone https://$env:[email protected] /germanatt/sdk-credentials.git C:\projects\sdk-credentials 55+ }
56+
7157 dotnet restore
58+
7259build :
7360 project : IBM.Watson.sln
7461 verbosity : minimal
You can’t perform that action at this time.
0 commit comments