Some checks failed
InnoHub Processor/tatort/pipeline/head There was a failure building this commit
65 lines
1.5 KiB
Groovy
65 lines
1.5 KiB
Groovy
|
|
pipeline {
|
|
agent any
|
|
|
|
tools {
|
|
nodejs 'NodeJS-24.2.0'
|
|
}
|
|
|
|
environment {
|
|
REGISTRY = 'https://gitea.innovation-hub-niedersachsen.de/'
|
|
IMAGE = 'tatort-app'
|
|
USER = 'jared'
|
|
TOKEN = credentials('74a7c9bb-c80f-4699-ab0e-f98fb2f9a8e6')
|
|
}
|
|
|
|
stages {
|
|
// stage('Install Dependencies') {
|
|
// steps {
|
|
// sh 'npm ci'
|
|
// }
|
|
// }
|
|
|
|
// stage('Test & Security Audit') {
|
|
// steps {
|
|
// echo 'Start checking security vulnerabilities in npm packages'
|
|
// sh 'npm audit'
|
|
// }
|
|
// }
|
|
|
|
// stage('Build') {
|
|
// when {
|
|
// branch 'development'
|
|
// }
|
|
// steps {
|
|
// sh 'npm run build'
|
|
// }
|
|
// }
|
|
|
|
stage('Manuelles Containerisieren') {
|
|
steps {
|
|
input message: 'Jetzt manuell freigeben für Deployment?', submitter: 'admin'
|
|
sh 'docker build -t tatort-app .'
|
|
sh 'docker image ls'
|
|
}
|
|
}
|
|
|
|
stage('Push image in gitea registry') {
|
|
steps {
|
|
sh "docker login ${REGISTRY}/access_token=${TOKEN}"
|
|
sh "docker push ${REGISTRY}/-/${IMAGE}:latest"
|
|
sh "docker logout ${REGISTRY}"
|
|
}
|
|
}
|
|
}
|
|
|
|
post {
|
|
success {
|
|
echo 'Pipeline erfolgreich!'
|
|
}
|
|
failure {
|
|
echo 'Pipeline fehlgeschlagen!'
|
|
}
|
|
}
|
|
}
|