test branch develop und IP 172.20.0.2 und try catch blocke in jenkinsfile pipeline nach Nodejs installation in jenkins test

This commit is contained in:
ISA
2024-07-13 23:38:05 +02:00
parent 284323842e
commit 500e3a4509

6
Jenkinsfile vendored
View File

@@ -24,7 +24,7 @@ pipeline {
script {
try {
// Node.js Version setzen
nodejs('nodejs') {
nodejs('NodeJS') {
// Abhängigkeiten installieren
sh 'npm install'
}
@@ -39,7 +39,7 @@ pipeline {
steps {
script {
try {
nodejs('nodejs') {
nodejs('NodeJS') {
// Projekt bauen
sh 'npm run build'
}
@@ -54,7 +54,7 @@ pipeline {
steps {
script {
try {
nodejs('nodejs') {
nodejs('NodeJS') {
// Tests ausführen
sh 'npm test'
}