3
0

OP#253 add first Jenkins staget

This commit is contained in:
12ww1160
2025-12-12 18:03:59 +01:00
parent 0315f33dfa
commit 64a438b98f

8
Jenkinsfile vendored
View File

@@ -57,7 +57,8 @@ pipeline {
}
stage('upload GPG Key') {
withCredentials([usernamePassword(
steps {
withCredentials([usernamePassword(
credentialsId: 'Jenkins-gitea',
usernameVariable: 'GITEA_USER',
passwordVariable: 'GITEA_TOKEN')]) {
@@ -67,9 +68,10 @@ pipeline {
--upload-file keys/keys/RPM-GPG-KEY-public.asc \
https://gitea.confdroid.com/api/packages/confdroid/rpm.repo
'''
}
}
}
}
}
stage('update repo') {
steps {
@@ -80,9 +82,9 @@ pipeline {
git add -A && git commit -am "Recommit for updates in build $BUILD_NUMBER" || echo "No changes to commit"
git push origin HEAD:master
'''
}
}
}
}
stage('Mirror to Gitea') {
steps {