From ead61fc7840a2d351b8d801cb1a863fd2a332b48 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Wed, 26 Nov 2025 19:14:57 +0100 Subject: [PATCH] add step to push to gitea --- Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 01d4cf1..c0b400b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -108,13 +108,16 @@ pipeline { script { // Checkout from GitLab (already done implicitly) sh """ + git config user.name "Jenkins Server" + git config user.email jenkins@confdroid.com + git checkout master git remote add gitea https://gitea.confdroid.com/confdroid/puppet_cd.git git -c user.email=jenkins@confdroid.com -c user.name=Jenkins push --mirror gitea """ } } } - when { branch 'main' } // Only on main branch to avoid noise + when { branch 'master' } // Only on main branch to avoid noise } } }