3
0

OP#253 add build stage prometheus rpm

This commit is contained in:
12ww1160
2025-12-12 19:04:38 +01:00
parent e98fb543b7
commit cc03a06f65
2 changed files with 20 additions and 4 deletions

20
Jenkinsfile vendored
View File

@@ -123,13 +123,31 @@ pipeline {
-C build/prometheus \
-f
"""
// list directory
sh "ls -alh"
// cleanup
sh "rm -rf build/prometheus prometheus.tar.gz prometheus-${version}.linux-amd64"
}
}
}
stage('upload rpms') {
steps {
withCredentials([usernamePassword(
credentialsId: 'Jenkins-gitea',
usernameVariable: 'GITEA_USER',
passwordVariable: 'GITEA_TOKEN')]) {
script {
sh '''
curl --user ${GITEA_USER}:${GITEA_TOKEN} \
--upload-file keys/repository.key \
https://gitea.confdroid.com/api/packages/confdroid/rpm/upload
'''
}
}
}
}
stage('update repo') {
steps {