diff --git a/Jenkinsfile b/Jenkinsfile index fba4053..01d4cf1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -102,20 +102,19 @@ pipeline { } } - stage('Mirror to Gitea') { - steps { - sshagent(['edd05eb6-26b5-4c7b-a5cc-ea2ab899f4fa']) { - script { - // Checkout from GitLab (already done implicitly) - sh """ - 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 - """ - } + stage('Mirror to Gitea') { + steps { + sshagent(['edd05eb6-26b5-4c7b-a5cc-ea2ab899f4fa']) { + script { + // Checkout from GitLab (already done implicitly) + sh """ + 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 'main' } // Only on main branch to avoid noise } } -} \ No newline at end of file +}