Added Jenkinsfile

This commit is contained in:
dandanalaa committed 2022-12-10 19:02:06 +00:00
1 parent 3270b44f1d
commit 7d490ac360
1 file changed
+10 -6
Vendored
+10 -6
View File
@@ -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'
}
}