3
0

add step to push to gitea

This commit is contained in:
Arne Teuke
2025-11-26 19:14:57 +01:00
parent 4a317743f9
commit ead61fc784

5
Jenkinsfile vendored
View File

@@ -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
}
}
}