ci043-add-jenkins-ci #13
44
Jenkinsfile
vendored
44
Jenkinsfile
vendored
@@ -7,18 +7,18 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
// stage('Install Dependencies') {
|
stage('Install Dependencies') {
|
||||||
// steps {
|
steps {
|
||||||
// sh 'npm ci'
|
sh 'npm ci'
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
// stage('Test & Security Audit') {
|
stage('Test & Security Audit') {
|
||||||
// steps {
|
steps {
|
||||||
// echo 'Start checking security vulnerabilities in npm packages'
|
echo 'Start checking security vulnerabilities in npm packages'
|
||||||
// sh 'npm audit'
|
sh 'npm audit'
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
// stage('Build') {
|
// stage('Build') {
|
||||||
// when {
|
// when {
|
||||||
@@ -29,24 +29,16 @@ pipeline {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// stage('Manuelles Containerisieren') {
|
// stage('Push image in gitea registry') {
|
||||||
// steps {
|
// steps {
|
||||||
// input message: 'Jetzt manuell freigeben für Deployment?', submitter: 'admin'
|
// echo 'Start Pushing'
|
||||||
// sh 'docker build -t tatort-app .'
|
// script {
|
||||||
// sh 'docker image ls'
|
// 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 {
|
post {
|
||||||
|
|||||||
Reference in New Issue
Block a user