Skip to content
Snippets Groups Projects
Commit d76c3822 authored by L. Ellenbeck's avatar L. Ellenbeck
Browse files

Merge branch 'Topic/570-gitVersion' into 'master'

Fix: too many exceptions

See merge request coscine/cs/exampleproject!22
parents b5123d13 c4f5f95e
No related branches found
No related tags found
1 merge request!22Fix: too many exceptions
......@@ -17,6 +17,11 @@ var version = Argument("nugetVersion", "");
var gitlabProjectPath = Argument("gitlabProjectPath", "");
var gitlabProjectId = Argument("gitlabProjectId", "");
var gitlabToken = Argument("gitlabToken", "");
var feed = new
{
Name = "LocalNuget",
Source = @"C:\LocalNuget"
};
// Define directories
var projects = GetFiles("./**/*.csproj");
......@@ -71,7 +76,11 @@ Task("Clean")
Task("Restore")
.Does(() =>{
// Restore all NuGet packages.
if (!NuGetHasSource(feed.Source))
{
NuGetAddSource(feed.Name, feed.Source);
}
NuGetRestore(solutionFile, new NuGetRestoreSettings {
NoCache = true
});
......@@ -221,7 +230,6 @@ Task("GitlabRelease")
// correctly escape the json newlines
description = description.Replace("\n", "\\n");
Information("Description: {0}", description);
throw new Exception();
// create tag
client.DefaultRequestHeaders.Add("PRIVATE-TOKEN", gitlabToken);
......@@ -317,6 +325,15 @@ Task("CopyToArtifacts")
}
});
Task("NugetPushLocal")
.IsDependentOn("NugetPack")
.Does(() =>{
var nupkgs = GetFiles($"{nupkgDir}/*.nupkg");
foreach(var nupkg in nupkgs) {
NuGetAdd(nupkg.ToString(), feed.Source);
}
});
Task("Prerelease")
.IsDependentOn("Build")
.IsDependentOn("CopyToArtifacts");
......
......@@ -9,8 +9,8 @@ using System.Reflection;
[assembly: AssemblyDescription("ExampleProject.Tests is a part of the CoScInE group.")]
[assembly: AssemblyCompany("IT Center, RWTH Aachen University")]
[assembly: AssemblyProduct("ExampleProject.Tests")]
[assembly: AssemblyVersion("1.6.1")]
[assembly: AssemblyFileVersion("1.6.1")]
[assembly: AssemblyInformationalVersion("1.6.1")]
[assembly: AssemblyVersion("1.5.0")]
[assembly: AssemblyFileVersion("1.5.0")]
[assembly: AssemblyInformationalVersion("1.5.0-topic-570-gitver0075")]
[assembly: AssemblyCopyright("2020 IT Center, RWTH Aachen University")]
......@@ -9,8 +9,8 @@ using System.Reflection;
[assembly: AssemblyDescription("ExampleProject.cmd is a part of the CoScInE group.")]
[assembly: AssemblyCompany("IT Center, RWTH Aachen University")]
[assembly: AssemblyProduct("ExampleProject.cmd")]
[assembly: AssemblyVersion("1.6.1")]
[assembly: AssemblyFileVersion("1.6.1")]
[assembly: AssemblyInformationalVersion("1.6.1")]
[assembly: AssemblyVersion("1.5.0")]
[assembly: AssemblyFileVersion("1.5.0")]
[assembly: AssemblyInformationalVersion("1.5.0-topic-570-gitver0075")]
[assembly: AssemblyCopyright("2020 IT Center, RWTH Aachen University")]
......@@ -9,8 +9,8 @@ using System.Reflection;
[assembly: AssemblyDescription("ExampleProject is a part of the CoScInE group.")]
[assembly: AssemblyCompany("IT Center, RWTH Aachen University")]
[assembly: AssemblyProduct("ExampleProject")]
[assembly: AssemblyVersion("1.6.1")]
[assembly: AssemblyFileVersion("1.6.1")]
[assembly: AssemblyInformationalVersion("1.6.1")]
[assembly: AssemblyVersion("1.5.0")]
[assembly: AssemblyFileVersion("1.5.0")]
[assembly: AssemblyInformationalVersion("1.5.0-topic-570-gitver0075")]
[assembly: AssemblyCopyright("2020 IT Center, RWTH Aachen University")]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment