asd
This commit is contained in:
2026-05-03 15:53:11 +00:00
parent 69ac2c5be3
commit 7592b3e42b
Vendored
+20 -20
View File
@@ -138,30 +138,30 @@ powershell -NoProfile -ExecutionPolicy Bypass -File gitea-release.ps1
} }
} }
post { post {
always { always {
node('linux') { node('linux') {
cleanWs() cleanWs()
checkout scm checkout scm
script { script {
def result = currentBuild.currentResult ?: 'UNKNOWN' def result = currentBuild.currentResult ?: 'UNKNOWN'
withCredentials([string(credentialsId: 'TAIGA_TOKEN', variable: 'TAIGA_TOKEN')]) { withCredentials([string(credentialsId: 'TAIGA_TOKEN', variable: 'TAIGA_TOKEN')]) {
sh(returnStatus: true, script: """ sh(returnStatus: true, script: """
set +e set +e
REF=\\$(git log -1 --pretty=%B | grep -oE 'TG-[0-9]+' | head -1 | cut -d- -f2 || true) REF=\$(git log -1 --pretty=%B | grep -oE 'TG-[0-9]+' | head -1 | cut -d- -f2 || true)
if [ -z "\\$REF" ]; then if [ -z "\$REF" ]; then
echo "No TG-* reference found" echo "No TG-* reference found"
exit 0 exit 0
fi fi
export REF export REF
export BUILD_RESULT="${result}" export BUILD_RESULT="${result}"
python3 - <<'PY' python3 - <<'PY'
import json import json
import os import os
import urllib.request import urllib.request
@@ -229,10 +229,10 @@ except Exception as e:
raise SystemExit(0) raise SystemExit(0)
PY PY
""".stripIndent()) """.stripIndent())
}
} }
} }
} }
} }
}
} }