[👷] Jenkins Test6
Some checks reported errors
Front/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
Front/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
045b1a36d0
commit
dcc84b7a9e
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user