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 \ -C build/prometheus \
-f -f
""" """
// list directory
sh "ls -alh"
// cleanup // cleanup
sh "rm -rf build/prometheus prometheus.tar.gz prometheus-${version}.linux-amd64" 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') { stage('update repo') {
steps { steps {

View File

@@ -5,6 +5,4 @@
## Purpose ## Purpose
This repository aims to provide prometheus RPMs based on the officially released tarballs for easier installations. This repository aims to provide prometheus RPMs based on the officially released tarballs for easier installations. Any credit for creating the source code etc. goes fully to the Prometheus Team, he we created only the rpms.
## Target