From 7ca5012ff059de2889b411fab496f9e5ca60ed06 Mon Sep 17 00:00:00 2001 From: 12ww1160 Date: Fri, 12 Dec 2025 23:18:57 +0100 Subject: [PATCH] OP#253 add build stage rpm upload --- Jenkinsfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 5af3d9d..fd17c69 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -132,6 +132,25 @@ pipeline { } } + stage('upload rpms') { + steps { + withCredentials([usernamePassword( + credentialsId: 'Jenkins-gitea', + usernameVariable: 'GITEA_USER', + passwordVariable: 'GITEA_TOKEN')]) { + script { + sh ''' + for rpm in rpms/*.rpm; do + curl --user ${GITEA_USER}:${GITEA_TOKEN} \ + --upload-file rpms/x86_64/*.rpm \ + https://gitea.confdroid.com/api/packages/confdroid/rpm/upload + done + ''' + } + } + } + } + stage('update repo') { steps { sshagent(['edd05eb6-26b5-4c7b-a5cc-ea2ab899f4fa']) {