From 657d239f23d0058f6352bcce36ab956e15f8452f Mon Sep 17 00:00:00 2001 From: 12ww1160 Date: Fri, 12 Dec 2025 23:55:42 +0100 Subject: [PATCH] OP#253 add step to delete rpms from remote mirror --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c564dba..ca8cde8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -155,8 +155,9 @@ pipeline { steps { sshagent(['edd05eb6-26b5-4c7b-a5cc-ea2ab899f4fa']) { sh ''' - git config user.name "Jenkins Server" + git config user.name "Jenkins Server" git config user.email jenkins@confdroid.com + git rm -f *.rpm git add -A && git commit -am "Recommit for updates in build $BUILD_NUMBER" || echo "No changes to commit" git push origin HEAD:master ''' @@ -178,6 +179,7 @@ pipeline { git branch -D development git branch -D jenkins-build-$BUILD_NUMBER git rm -f Jenkinsfile + git rm -f *.rpm git rm -f rpms/x86_64/*.rpm git commit --amend --no-edit --allow-empty git remote add master https://gitea.confdroid.com/confdroid/confdroid-prometheus-rpms.git