Added Jenkinsfile

feature/testing
dandan 4 years ago
parent 3270b44f1d
commit 7d490ac360

16
Jenkinsfile vendored

@ -1,6 +1,5 @@
pipeline {
agent any
tools {nodejs "Node 16.18"}
stages {
stage('Env reinit') {
steps {
@ -31,15 +30,20 @@ cat ./.env'''
stage('build') {
steps {
sh '''ls -l'''
sh 'ls -l'
}
}
stage('build2') {
stage('build2') {
steps {
sh '''ls -l
npm install
npm build'''
sh '''npm install
npm run build
npm run start'''
}
}
}
tools {
nodejs 'Node 16.18'
}
}
Loading…
Cancel
Save