Commit Graph

5 Commits

Author SHA1 Message Date
Martin Tahiraj
b6dc2aefe4 refactor(jenkins): remove redundant Checkout stage
Declarative Pipeline with agent any already runs 'Declarative: Checkout SCM'
automatically before user stages  the explicit stage('Checkout') was cloning
the repo a second time for no reason. Remove it entirely; capture GIT_COMMIT_SHA
and GIT_PREV_SHA at the top of stage('Detect') using the already-present workspace.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-02 14:39:39 +02:00
Martin Tahiraj
18f8d38796 fix(jenkins): move credentials out of environment block to avoid pipeline abort
credentials() in the pipeline-level environment{} block causes an immediate
abort before any stage runs if the credential ID does not exist in Jenkins.
The node is released, post{} runs without a node context, and sh steps fail
with 'Required context class hudson.FilePath is missing'.

Fix: remove REGISTRY_CREDS and GITEA_CREDS from environment{}, replace with
withCredentials() inside the stages that actually need them (Build & Push,
Publish). Wrap post{cleanup} sh calls in try/catch as a safety net.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-02 14:34:48 +02:00
Martin Tahiraj
b9b35f7b41 fix(jenkins): update trigger method to use pollSCM and provide upgrade recommendations for Generic Webhook Trigger 2026-04-02 14:07:53 +02:00
Martin Tahiraj
c62240d0de fix(jenkins): update default GITEA_USER and improve variable naming in notification logic 2026-04-02 13:01:10 +02:00
Martin Tahiraj
90793f500b feat(jenkins): add CI/CD pipeline for HA add-ons with linting, building, and publishing 2026-04-02 12:05:55 +02:00