From cc03a06f65472e09adc99a09cc862bae37205740 Mon Sep 17 00:00:00 2001 From: 12ww1160 Date: Fri, 12 Dec 2025 19:04:38 +0100 Subject: [PATCH] OP#253 add build stage prometheus rpm --- Jenkinsfile | 20 +++++++++++++++++++- README.md | 4 +--- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 55643d9..73a326d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 { diff --git a/README.md b/README.md index 41144ba..d4a1bfd 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,4 @@ ## Purpose -This repository aims to provide prometheus RPMs based on the officially released tarballs for easier installations. - -## Target \ No newline at end of file +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.