3
0

add step to push to gitea

This commit is contained in:
Arne Teuke
2025-11-26 19:06:39 +01:00
parent ea17d57818
commit 4a317743f9

25
Jenkinsfile vendored
View File

@@ -102,20 +102,19 @@ pipeline {
} }
} }
stage('Mirror to Gitea') { stage('Mirror to Gitea') {
steps { steps {
sshagent(['edd05eb6-26b5-4c7b-a5cc-ea2ab899f4fa']) { sshagent(['edd05eb6-26b5-4c7b-a5cc-ea2ab899f4fa']) {
script { script {
// Checkout from GitLab (already done implicitly) // Checkout from GitLab (already done implicitly)
sh """ sh """
git remote add gitea https://gitea.confdroid.com/confdroid/puppet_cd.git 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 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
} }
} }
} }