.NET 6, owned by greyn, jenkins pack/publish
This commit is contained in:
parent
c84dcc353a
commit
262f72c6df
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@ -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
|
||||
|
17
Jenkinsfile
vendored
Normal file
17
Jenkinsfile
vendored
Normal 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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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<string>(){"a!"});
|
||||
Telefranz.Configure("tester", "alloces:9092", new System.Collections.Generic.List<string>(){"a!"});
|
||||
|
||||
Telefranz.Instance.addHandler<silver_messages.global.report>(r => {
|
||||
Console.WriteLine(r);
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -154,6 +154,7 @@ namespace franz
|
||||
|
||||
public void ProduceMessage<T>(T message) where T : silver_messages.message
|
||||
{
|
||||
Console.WriteLine(message.ToString());
|
||||
clusterClient.Produce(typeof(T).ToString(), message.ToString());
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<PackageId>AdamRGrey.franz</PackageId>
|
||||
<PackageId>greyn.franz</PackageId>
|
||||
<Version>1.0.0</Version>
|
||||
<Authors>Adam R Grey</Authors>
|
||||
</PropertyGroup>
|
||||
|
Loading…
Reference in New Issue
Block a user