ci043-add-jenkins-ci #13

Merged
jared merged 36 commits from ci043-add-jenkins-ci into development 2025-06-25 16:40:38 +02:00
Showing only changes of commit c74322228f - Show all commits

44
Jenkinsfile vendored
View File

@@ -7,18 +7,18 @@ pipeline {
}
stages {
// stage('Install Dependencies') {
// steps {
// sh 'npm ci'
// }
// }
stage('Install Dependencies') {
steps {
sh 'npm ci'
}
}
// stage('Test & Security Audit') {
// steps {
// echo 'Start checking security vulnerabilities in npm packages'
// sh 'npm audit'
// }
// }
stage('Test & Security Audit') {
steps {
echo 'Start checking security vulnerabilities in npm packages'
sh 'npm audit'
}
}
// stage('Build') {
// when {
@@ -29,24 +29,16 @@ pipeline {
// }
// }
// stage('Manuelles Containerisieren') {
// stage('Push image in gitea registry') {
// steps {
// input message: 'Jetzt manuell freigeben für Deployment?', submitter: 'admin'
// sh 'docker build -t tatort-app .'
// sh 'docker image ls'
// echo 'Start Pushing'
// script {
// docker.withRegistry('https://gitea.innovation-hub-niedersachsen.de', 'JenkinsGitea') {
// docker.build('innohub/tatort-app').push('latest')
// }
// }
// }
// }
stage('Push image in gitea registry') {
steps {
echo 'Start Pushing'
script {
docker.withRegistry('https://gitea.innovation-hub-niedersachsen.de', 'JenkinsGitea') {
docker.build('innohub/tatort/tatort-app').push('latest')
}
}
}
}
}
post {