.NET 6, owned by greyn, jenkins pack/publish

This commit is contained in:
Adam R Grey 2022-11-30 15:52:25 -05:00
parent c84dcc353a
commit 262f72c6df
6 changed files with 22 additions and 4 deletions

2
.vscode/launch.json vendored
View File

@ -10,7 +10,7 @@
"request": "launch", "request": "launch",
"preLaunchTask": "build", "preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path. // If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/franz.tests/bin/Debug/net5.0/franz.tests.dll", "program": "${workspaceFolder}/franz.tests/bin/Debug/net6.0/franz.tests.dll",
"args": [], "args": [],
"cwd": "${workspaceFolder}/franz.tests", "cwd": "${workspaceFolder}/franz.tests",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console

17
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,17 @@
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building..'
sh 'dotnet pack --configuration Release --output ./'
}
}
stage('Deploy') {
steps {
sh 'dotnet nuget push ./*.nupkg --source gitea'
}
}
}
}

View File

@ -9,7 +9,7 @@ namespace franz.tests
static void Main(string[] args) static void Main(string[] args)
{ {
Console.WriteLine("Hello World, Im' " + Dns.GetHostName()); Console.WriteLine("Hello World, Im' " + Dns.GetHostName());
Telefranz.Configure("tester", "focalor:9092", new System.Collections.Generic.List<string>(){"a!"}); Telefranz.Configure("tester", "alloces:9092", new System.Collections.Generic.List<string>(){"a!"});
Telefranz.Instance.addHandler<silver_messages.global.report>(r => { Telefranz.Instance.addHandler<silver_messages.global.report>(r => {
Console.WriteLine(r); Console.WriteLine(r);

View File

@ -6,7 +6,7 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
</PropertyGroup> </PropertyGroup>
</Project> </Project>

View File

@ -154,6 +154,7 @@ namespace franz
public void ProduceMessage<T>(T message) where T : silver_messages.message public void ProduceMessage<T>(T message) where T : silver_messages.message
{ {
Console.WriteLine(message.ToString());
clusterClient.Produce(typeof(T).ToString(), message.ToString()); clusterClient.Produce(typeof(T).ToString(), message.ToString());
} }
} }

View File

@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net6.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
<PackageId>AdamRGrey.franz</PackageId> <PackageId>greyn.franz</PackageId>
<Version>1.0.0</Version> <Version>1.0.0</Version>
<Authors>Adam R Grey</Authors> <Authors>Adam R Grey</Authors>
</PropertyGroup> </PropertyGroup>