👷 Add jenkins tagger

This commit is contained in:
Andreas Dinauer 2026-02-05 19:55:09 +01:00
parent c8cfb6eeab
commit f4b04691f5

15
Jenkinsfile vendored
View File

@ -2,7 +2,22 @@ pipeline {
agent any
stages {
stage('Tag git commit') {
steps {
script {
sshagent(['jenkins']) {
sh """
git config user.email "jenkins"
git config user.name "jenkins@dinauer-paf.de"
git tag -a build-${env.BUILD_NUMBER} -m "Jenkins Build ${env.BUILD_NUMBER}"
git push origin build-${env.BUILD_NUMBER}
"""
}
}
}
}
stage('Set Image Name') {
steps {
script {