add step to push to gitea
This commit is contained in:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@@ -112,8 +112,9 @@ pipeline {
|
||||
// Checkout from GitLab (already done implicitly)
|
||||
sh '''
|
||||
git remote remove gitea || true
|
||||
git remote add gitea https://${GITEA_USER}:${GITEA_TOKEN}@gitea.confdroid.com/confdroid/puppet_cd.git
|
||||
git push --mirror gitea
|
||||
git remote add gitea https://gitea.confdroid.com/confdroid/puppet_cd.git
|
||||
git -c credential.helper="!f() { echo username=${GITEA_USER}; echo password=${GITEA_TOKEN}; }; f" \
|
||||
push gitea refs/heads/master:refs/heads/master --tags
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user