fix bugs, fix jenkinsfile, nuget mysteriously now cooperating
This commit is contained in:
parent
e4a4173bd4
commit
ddb74a7bee
19
Jenkinsfile
vendored
19
Jenkinsfile
vendored
@ -4,12 +4,21 @@ pipeline {
|
|||||||
dotnetsdk 'dotnet6'
|
dotnetsdk 'dotnet6'
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('clean old'){
|
||||||
steps{
|
steps{
|
||||||
dotnetClean
|
sh 'rm -rf bin obj'
|
||||||
echo 'Building..'
|
}
|
||||||
sh 'dotnet publish --configuration Release --output PUBLISH-linux --os linux'
|
}
|
||||||
sh 'dotnet publish --configuration Release --output PUBLISH-windows --os windows'
|
stage('linux') {
|
||||||
|
steps {
|
||||||
|
sh 'dotnet publish --configuration Release --os linux'
|
||||||
|
archiveArtifacts artifacts: 'bin/Release/net/net6.0/linux-x64/publish/*'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('windows') {
|
||||||
|
steps {
|
||||||
|
sh 'dotnet publish --configuration Release --os windows'
|
||||||
|
archiveArtifacts artifacts: 'bin/Release/net/net6.0/windows-x64/publish/*'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -34,10 +34,10 @@ namespace directors_assistant
|
|||||||
Console.WriteLine($"executing {cmd.name}{(ec.args != null ? ", given args " + string.Join(' ', ec.args) : "")} with timeout {ec.timeout}");
|
Console.WriteLine($"executing {cmd.name}{(ec.args != null ? ", given args " + string.Join(' ', ec.args) : "")} with timeout {ec.timeout}");
|
||||||
|
|
||||||
var cmdAndArgs = cmd.shell.Split(' ');
|
var cmdAndArgs = cmd.shell.Split(' ');
|
||||||
var justArgs = cmdAndArgs.Skip(1).ToList();
|
var justArgs = string.Join(' ', cmdAndArgs.Skip(1).ToList());
|
||||||
if(ec.args?.Count > 0)
|
if(!string.IsNullOrWhiteSpace(ec.args))
|
||||||
{
|
{
|
||||||
justArgs.AddRange(ec.args);
|
justArgs += ec.args;
|
||||||
}
|
}
|
||||||
var commandPath = cmdAndArgs[0];
|
var commandPath = cmdAndArgs[0];
|
||||||
var commandArguments = String.Join(' ', justArgs);
|
var commandArguments = String.Join(' ', justArgs);
|
||||||
|
Loading…
Reference in New Issue
Block a user