From e588d3ae821666cc819c8c9f320a18f0690212c2 Mon Sep 17 00:00:00 2001 From: Karsten Jeppesen Date: Wed, 25 Nov 2026 09:06:12 +0100 Subject: [PATCH] workflow update --- .workflow/01_dotnet_build.sh | 7 +++++++ .workflow/Jenkinsfile | 1 + .workflow/README.txt | 27 ++++++++++++++------------- 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/.workflow/01_dotnet_build.sh b/.workflow/01_dotnet_build.sh index 13439e1..fb441f1 100644 --- a/.workflow/01_dotnet_build.sh +++ b/.workflow/01_dotnet_build.sh @@ -1,6 +1,13 @@ #!/bin/bash echo "OK" > jenkins.result + +# Check dotnet10 installed +! which dotnet || sudo apt-get install -y dotnet10 +if ! which dotnet; then + echo "DOTNET NOT FOUND" + exit 1 +fi # Find all .csproj files and loop through them find . -type f -name "*.csproj" | while read -r csproj; do echo "Building $csproj..." diff --git a/.workflow/Jenkinsfile b/.workflow/Jenkinsfile index 38b1b56..85e9652 100644 --- a/.workflow/Jenkinsfile +++ b/.workflow/Jenkinsfile @@ -56,6 +56,7 @@ pipeline { stage('Change to unix files') { steps { echo "Change to unix files" + sh "! which dos2unix || sudo apt-get install -y dos2unix" sh "/bin/dos2unix .workflow/* .workflow/*" sh "/bin/chmod +x .workflow/* .workflow/*" } diff --git a/.workflow/README.txt b/.workflow/README.txt index 7efc47d..2fdb883 100644 --- a/.workflow/README.txt +++ b/.workflow/README.txt @@ -1,20 +1,21 @@ Jenkinsfile with AI provisions The Build Agent should provide the following environment (in alphabetical order): -- GITEA_AGENT in clear text -- GITEA_API_URL https://gitea.a.ucnit.eu/api/v1 in clear text -- GITEA_API_KEY 046xxxxxxxxxxf76 in clear text -- GIT_USER in clear text -- MAX_FILE_BYTES 20000 in clear text -- OLLAMA_API_KEY sk-b5844exxxxx01 in clear text -- OLLAMA_API_URI https://ollama.a.ucnit.eu/ollama/v1 in clear text -- OLLAMA_MODEL llama3.1:8b in clear text -- REQUEST_TIMEOUT_SEC 3600 in clear text -- FILE_EXTS cshtml,cs,js,json in clear text - +- GITEA_AGENT in clear text cicd-builder +- GITEA_API_URL in clear text https://gitea.a.ucnit.eu/api/v1 +- GITEA_API_KEY in clear text +- GIT_USER in clear text +- MAX_FILE_BYTES in clear text +- OLLAMA_API_KEY through credentials:secret text +- OLLAMA_API_URI in clear text https://agent:12tf56so@ollama-api.a.ucnit.eu/v1 +- OLLAMA_MODEL in clear text +- REQUEST_TIMEOUT_SEC through credentials:secret text +- FILE_EXTS in clear text (cshtml,cs,js,json) And the following settings -- Remote root directory ./jenkins +- Remote root directory ~/jenkins - Labels builder - Launch method Launch agents via ssh -- Host Key Verification Strategy Not verifying \ No newline at end of file +- Host Key Verification Strategy Not verifying +\ No newline at end of file +