From aaa84eefa85efac29b58aeecad28faaba6ac1147 Mon Sep 17 00:00:00 2001 From: Karsten Jeppesen Date: Sun, 22 Nov 2026 10:35:21 +0100 Subject: [PATCH] 01_dotnet_build.sh: Checking for dotnet10 --- .workflow/01_dotnet_build.sh | 7 +++++++ .workflow/README.txt | 20 ++++++++++---------- 2 files changed, 17 insertions(+), 10 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/README.txt b/.workflow/README.txt index d613629..ab093a9 100644 --- a/.workflow/README.txt +++ b/.workflow/README.txt @@ -1,15 +1,15 @@ Jenkinsfile with AI provisions The Build Agent should provide the following environment (in alphabetical order): -- GITEA_AGENT in clear text -- GITEA_API_URL in clear text -- 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 -- OLLAMA_MODEL in clear text -- REQUEST_TIMEOUT_SEC through credentials:secret text -- FILE_EXTS in clear text (cshtml,cs,js,json) +- 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)