OP#253 add build stage prometheus rpm
This commit is contained in:
20
Jenkinsfile
vendored
20
Jenkinsfile
vendored
@@ -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 {
|
||||
|
||||
@@ -5,6 +5,4 @@
|
||||
|
||||
## Purpose
|
||||
|
||||
This repository aims to provide prometheus RPMs based on the officially released tarballs for easier installations.
|
||||
|
||||
## Target
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user