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') {
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user