From 64a438b98fab84b0078247d6a90825e5ca45a2eb Mon Sep 17 00:00:00 2001 From: 12ww1160 Date: Fri, 12 Dec 2025 18:03:59 +0100 Subject: [PATCH] OP#253 add first Jenkins staget --- Jenkinsfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4a2192d..5d9dee9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 {