[👷] Jenkins Test6
Some checks reported errors
Front/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
김선규 2024-07-12 12:59:15 +09:00
parent 045b1a36d0
commit dcc84b7a9e

14
Jenkinsfile vendored
View File

@ -1,16 +1,11 @@
pipeline { pipeline {
agent any agent any
environment { environment {
DOCKER_CONTAINER_NAME = 'stein-node' DOCKER_CONTAINER_NAME = 'stein-node'
APP_VOLUME_FRONT = '/home/node/front' // 컨테이너 내부 경로 APP_VOLUME_FRONT = '/home/node/front' // 컨테이너 내부 경로
NODEJS_VERSION = 'JenStein' // 위에서 설정한 NodeJS 설치 이름
} }
tools {
nodejs "${NODEJS_VERSION}"
}
stages { stages {
stage('Clone Repository') { stage('Clone Repository') {
steps { steps {
@ -18,15 +13,6 @@ pipeline {
} }
} }
stage('Build and Test') {
steps {
dir('front') {
sh 'npm install'
sh 'npm test'
}
}
}
stage('Deploy') { stage('Deploy') {
steps { steps {
script { script {