Added Jenkinsfile

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

14
Jenkinsfile vendored

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