Updating update-master to reset to release and copy NuGet.master.config to

repos
This commit is contained in:
Pranav K 2014-11-12 07:41:24 -08:00
parent 73a439804b
commit ac129c71ac
2 changed files with 22 additions and 7 deletions

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="NuGet.org" value="https://nuget.org/api/v2/" />
</packageSources>
</configuration>

View File

@ -155,16 +155,25 @@ var buildTarget = "compile"
}
}
#update-master
-// Merge release branch to master
#pull-all
for each='var repo in GetAllRepos()'
-CloneOrUpdate(repo);
var gitFolder = '${repo}'
git gitCommand='fetch origin'
git gitCommand='checkout origin/master -B master'
git gitCommand='merge origin/release --ff-only'
git gitCommand='push origin master:master'
#update-master
-// Merge release branch to master
@{
foreach (var repo in GetAllRepos())
{
CloneOrUpdate(repo);
GitCommand(repo, "checkout origin/release -B master");
File.Copy(Path.Combine("build-template", "NuGet.master.config"),
Path.Combine(repo, "NuGet.config"),
overwrite: true);
GitCommand(repo, "commit -am \"Updating NuGet.config\"");
GitCommand(repo, "push origin master");
}
}
#only-compile target='compile'
@{