OP#253 add first Jenkins staget
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -57,7 +57,8 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stage('upload GPG Key') {
|
stage('upload GPG Key') {
|
||||||
withCredentials([usernamePassword(
|
steps {
|
||||||
|
withCredentials([usernamePassword(
|
||||||
credentialsId: 'Jenkins-gitea',
|
credentialsId: 'Jenkins-gitea',
|
||||||
usernameVariable: 'GITEA_USER',
|
usernameVariable: 'GITEA_USER',
|
||||||
passwordVariable: 'GITEA_TOKEN')]) {
|
passwordVariable: 'GITEA_TOKEN')]) {
|
||||||
@@ -67,9 +68,10 @@ pipeline {
|
|||||||
--upload-file keys/keys/RPM-GPG-KEY-public.asc \
|
--upload-file keys/keys/RPM-GPG-KEY-public.asc \
|
||||||
https://gitea.confdroid.com/api/packages/confdroid/rpm.repo
|
https://gitea.confdroid.com/api/packages/confdroid/rpm.repo
|
||||||
'''
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
stage('update repo') {
|
stage('update repo') {
|
||||||
steps {
|
steps {
|
||||||
@@ -80,9 +82,9 @@ pipeline {
|
|||||||
git add -A && git commit -am "Recommit for updates in build $BUILD_NUMBER" || echo "No changes to commit"
|
git add -A && git commit -am "Recommit for updates in build $BUILD_NUMBER" || echo "No changes to commit"
|
||||||
git push origin HEAD:master
|
git push origin HEAD:master
|
||||||
'''
|
'''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
stage('Mirror to Gitea') {
|
stage('Mirror to Gitea') {
|
||||||
steps {
|
steps {
|
||||||
|
|||||||
Reference in New Issue
Block a user