3
0

Merge branch 'jenkins-build-39' into 'master'

Auto-merge for build 39

See merge request puppet/prometheus_cd!38
This commit is contained in:
2025-12-03 11:54:21 +00:00
2 changed files with 23 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
{
"cSpell.words": [
"changeme",
"GITEA",
"GOMAXPROCS",
"procs",
"reqpackage",

22
Jenkinsfile vendored
View File

@@ -101,5 +101,27 @@ pipeline {
}
}
}
stage('Mirror to Gitea') {
steps {
withCredentials([usernamePassword(
credentialsId: 'Jenkins-gitea',
usernameVariable: 'GITEA_USER',
passwordVariable: 'GITEA_TOKEN')]) {
script {
// Checkout from GitLab (already done implicitly)
sh '''
git checkout master
git pull origin master
git branch -D development
git branch -D jenkins-build-$BUILD_NUMBER
git remote add master https://gitea.confdroid.com/confdroid/prometheus_cd.git
git -c credential.helper="!f() { echo username=${GITEA_USER}; echo password=${GITEA_TOKEN}; }; f" \
push master --mirror
'''
}
}
}
}
}
}