Compare commits

...

11 Commits

Author SHA1 Message Date
e9e7df5478 spelling hard
Some checks failed
gitea/directors-assistant/pipeline/head This commit looks good
gitea.arg.rip/directors-assistant/pipeline/head There was a failure building this commit
2023-12-03 23:29:05 -05:00
9366070031 no wait yes it does
Some checks failed
gitea/directors-assistant/pipeline/head There was a failure building this commit
2023-12-03 23:27:32 -05:00
ba296dd47b pi dir doesn't go into publish/
Some checks failed
gitea/directors-assistant/pipeline/head There was a failure building this commit
2023-12-03 23:25:20 -05:00
53c0c8d3fb no no, one MORE jenkinsfile update
Some checks failed
gitea/directors-assistant/pipeline/head There was a failure building this commit
2023-12-03 23:19:40 -05:00
ecae3422a9 one more jenkins file update
All checks were successful
gitea/directors-assistant/pipeline/head This commit looks good
2023-12-03 23:16:51 -05:00
e70519a5e8 one more
All checks were successful
gitea/directors-assistant/pipeline/head This commit looks good
because the linux one has no file extension (:
2023-12-03 22:24:10 -05:00
0c3a486124 jenkinswindows
All checks were successful
gitea/directors-assistant/pipeline/head This commit looks good
2023-12-03 22:21:46 -05:00
f1adf6b500 i forget what cleanWS is supposed to do tbh
Some checks failed
gitea/directors-assistant/pipeline/head There was a failure building this commit
2023-12-03 22:13:38 -05:00
805b0cc476 jenkinsfile update attempt again
Some checks failed
gitea/directors-assistant/pipeline/head There was a failure building this commit
2023-12-03 22:11:15 -05:00
ba68fb79c1 update jenkinsfile
Some checks failed
gitea/directors-assistant/pipeline/head There was a failure building this commit
2023-12-03 22:09:29 -05:00
e06650f30c if your command is a bash script, dotnet gets confused if you try to run it -
Some checks failed
gitea/directors-assistant/pipeline/head There was a failure building this commit
so you'll have to do, for example, {"name":"grab 1 video now", "shell": "bash grab1vidnow.sh"}
but the way I did that, I have to split up and rejoin the spaces... so now when you send it args, i'm adding a space.
old and busted:
{"type": "gray_messages.directorial.execute_command", "command":"grab 1 video now", "args": " https://www.youtube.com/watch?v=OnNyPS2iaLo"}
new hotness:
{"type": "gray_messages.directorial.execute_command", "command":"grab 1 video now", "args": "https://www.youtube.com/watch?v=OnNyPS2iaLo"}
2023-11-28 13:11:11 -05:00
3 changed files with 12 additions and 9 deletions

17
Jenkinsfile vendored
View File

@ -1,8 +1,5 @@
pipeline {
agent any
tools {
dotnetsdk 'dotnet7'
}
stages {
stage('clean old'){
steps{
@ -11,14 +8,20 @@ pipeline {
}
stage('linux') {
steps {
sh 'dotnet publish --configuration Release --os linux'
archiveArtifacts artifacts: 'bin/Release/net7.0/linux-x64/publish/*.*'
sh 'dotnet publish directors-assistant.csproj --configuration Release --os linux'
archiveArtifacts artifacts: 'bin/Release/net7.0/linux-x64/publish/*'
}
}
stage('pi') {
steps {
sh 'dotnet publish directors-assistant.csproj --configuration Release --runtime linux-arm64 --self-contained'
archiveArtifacts artifacts: 'bin/Release/net7.0/linux-arm64/publish/*'
}
}
stage('windows') {
steps {
sh 'dotnet publish --configuration Release --os windows'
archiveArtifacts artifacts: 'bin/Release/net7.0/windows-x64/publish/*.*'
sh 'dotnet publish directors-assistant.csproj --configuration Release --os win'
archiveArtifacts artifacts: 'bin/Release/net7.0/win-x64/publish/*.*'
}
}
}

View File

@ -37,7 +37,7 @@ namespace directors_assistant
var justArgs = string.Join(' ', cmdAndArgs.Skip(1).ToList());
if(!string.IsNullOrWhiteSpace(ec.args))
{
justArgs += ec.args;
justArgs += " " + ec.args;
}
var commandPath = cmdAndArgs[0];
var commandArguments = String.Join(' ', justArgs);

View File

@ -11,7 +11,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="greyn.franz" Version="2.1.0" />
</ItemGroup>