OP#253 add step to delete rpms from remote mirror
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user