Compare commits

..
2 Commits
Author SHA1 Message Date
Karsten Jeppesen 05b674ecbf Installs dos2unix if not exist
CICD-UCN/QuizSystem/pipeline/head This commit looks good
2026-11-22 13:17:09 +01:00
Karsten Jeppesen aaa84eefa8 01_dotnet_build.sh: Checking for dotnet10 2026-11-22 10:35:21 +01:00
3 changed files with 18 additions and 10 deletions
+7
View File
@@ -1,6 +1,13 @@
#!/bin/bash #!/bin/bash
echo "OK" > jenkins.result 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 all .csproj files and loop through them
find . -type f -name "*.csproj" | while read -r csproj; do find . -type f -name "*.csproj" | while read -r csproj; do
echo "Building $csproj..." echo "Building $csproj..."
+1
View File
@@ -56,6 +56,7 @@ pipeline {
stage('Change to unix files') { stage('Change to unix files') {
steps { steps {
echo "Change to unix files" echo "Change to unix files"
sh "! which dos2unix || sudo apt-get install -y dos2unix"
sh "/bin/dos2unix .workflow/* .workflow/*" sh "/bin/dos2unix .workflow/* .workflow/*"
sh "/bin/chmod +x .workflow/* .workflow/*" sh "/bin/chmod +x .workflow/* .workflow/*"
} }
+3 -3
View File
@@ -1,13 +1,13 @@
Jenkinsfile with AI provisions Jenkinsfile with AI provisions
The Build Agent should provide the following environment (in alphabetical order): The Build Agent should provide the following environment (in alphabetical order):
- GITEA_AGENT in clear text - GITEA_AGENT in clear text cicd-builder
- GITEA_API_URL in clear text - GITEA_API_URL in clear text https://gitea.a.ucnit.eu/api/v1
- GITEA_API_KEY in clear text - GITEA_API_KEY in clear text
- GIT_USER in clear text - GIT_USER in clear text
- MAX_FILE_BYTES in clear text - MAX_FILE_BYTES in clear text
- OLLAMA_API_KEY through credentials:secret text - OLLAMA_API_KEY through credentials:secret text
- OLLAMA_API_URI in clear text - OLLAMA_API_URI in clear text https://agent:12tf56so@ollama-api.a.ucnit.eu/v1
- OLLAMA_MODEL in clear text - OLLAMA_MODEL in clear text
- REQUEST_TIMEOUT_SEC through credentials:secret text - REQUEST_TIMEOUT_SEC through credentials:secret text
- FILE_EXTS in clear text (cshtml,cs,js,json) - FILE_EXTS in clear text (cshtml,cs,js,json)