add step to push to gitea
This commit is contained in:
25
Jenkinsfile
vendored
25
Jenkinsfile
vendored
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user