File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1111 downloadPath : $(System.DefaultWorkingDirectory)
1212
1313- script : |
14+ git config --global init.defaultBranch main
1415 git config --global user.name ci
1516 git config --global user.email [email protected] 1617 displayName : Set up git username and email address
2425 dotnet new classlib -o lib &&
2526 cd lib &&
2627 echo '{"version":"42.42"}' > version.json &&
27- git init &&
28+ git init &&
2829 git add version.json &&
2930 git commit -m "Initial commit" &&
3031 mkdir lib && cd lib &&
5354 else
5455 echo ".NET Core $DNVERSION"
5556 fi
56-
57+
5758 PkgFileName=$(ls deployables/Cake.GitVersioning.*nupkg)
5859
5960 NBGV_NuGetPackageVersion=$([[ $PkgFileName =~ Cake.GitVersioning\.(.*)\.nupkg ]] && echo "${BASH_REMATCH[1]}")
7475
7576 dotnet cake
7677 displayName : Consume Cake.GitVersioning
77- failOnStderr : true
78+ failOnStderr : true
7879
7980- script : >
8081 echo DOTNET_ROOT=$DOTNET_ROOT
You can’t perform that action at this time.
0 commit comments