diff --git a/.vscode/launch.json b/.vscode/launch.json index 8990c64..f8377ea 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -10,7 +10,7 @@ "request": "launch", "preLaunchTask": "build", // 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": [], "cwd": "${workspaceFolder}/franz.tests", // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..0a8e256 --- /dev/null +++ b/Jenkinsfile @@ -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' + } + } + } +} \ No newline at end of file diff --git a/franz.tests/Program.cs b/franz.tests/Program.cs index 9917478..fe94c29 100644 --- a/franz.tests/Program.cs +++ b/franz.tests/Program.cs @@ -9,7 +9,7 @@ namespace franz.tests static void Main(string[] args) { Console.WriteLine("Hello World, Im' " + Dns.GetHostName()); - Telefranz.Configure("tester", "focalor:9092", new System.Collections.Generic.List(){"a!"}); + Telefranz.Configure("tester", "alloces:9092", new System.Collections.Generic.List(){"a!"}); Telefranz.Instance.addHandler(r => { Console.WriteLine(r); diff --git a/franz.tests/franz.tests.csproj b/franz.tests/franz.tests.csproj index 5592e61..8975cac 100644 --- a/franz.tests/franz.tests.csproj +++ b/franz.tests/franz.tests.csproj @@ -6,7 +6,7 @@ Exe - net5.0 + net6.0 diff --git a/franz/Telefranz.cs b/franz/Telefranz.cs index 603a607..57cf34a 100644 --- a/franz/Telefranz.cs +++ b/franz/Telefranz.cs @@ -154,6 +154,7 @@ namespace franz public void ProduceMessage(T message) where T : silver_messages.message { + Console.WriteLine(message.ToString()); clusterClient.Produce(typeof(T).ToString(), message.ToString()); } } diff --git a/franz/franz.csproj b/franz/franz.csproj index 05ebc56..d275125 100644 --- a/franz/franz.csproj +++ b/franz/franz.csproj @@ -2,7 +2,7 @@ net6.0 - AdamRGrey.franz + greyn.franz 1.0.0 Adam R Grey