Compare commits

...

4 commits
main ... v1

Author SHA1 Message Date
fc1bc1fe2b test 2026-01-06 16:14:26 -03:00
4227ca6965 test 2026-01-06 16:13:25 -03:00
970fd0cb11 Merge branch 'main' into dev 2026-01-06 16:09:57 -03:00
67002d20c0 test 2026-01-06 15:53:57 -03:00
2 changed files with 9 additions and 4 deletions

11
Jenkinsfile vendored
View file

@ -22,11 +22,16 @@ pipeline {
sh 'git submodule update --init --recursive' sh 'git submodule update --init --recursive'
if (env.BRANCH_NAME !== 'main') { def branch = sh(
echo "[!] Not on main branch. Stopping pipeline." script: "git branch --show-current",
returnStdout: true
).trim()
if(branch != 'main') {
echo "[!] Not on 'main' branch. Current branch: ${branch}"
currentBuild.result = 'SUCCESS' currentBuild.result = 'SUCCESS'
error("Stopping pipeline: not on main branch.") error("Stopping pipeline: not on main branch.")
} }
def tagName = sh( def tagName = sh(
script: "git describe --tags --exact-match 2>/dev/null || echo 'no-tag'", script: "git describe --tags --exact-match 2>/dev/null || echo 'no-tag'",

View file

@ -1,3 +1,3 @@
# dotnet.worker # dotnet.worker