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.