Mise à jour de 'Jenkinsfile'

This commit is contained in:
dandanalaa committed 2022-12-10 22:10:24 +00:00
1 parent 4fd2e6a12b
commit 5b0a6c1d65
1 file changed
+2 -6
Vendored
+2 -6
View File
@@ -1,5 +1,6 @@
pipeline { pipeline {
agent any agent any
tools {nodejs 'Node 16.18'}
stages { stages {
stage('Env reinit') { stage('Env reinit') {
steps { steps {
@@ -26,7 +27,7 @@ API_KEY=1234
" > ./.env " > ./.env
cat ./.env''' cat ./.env'''
} }
}
stage('Build') { stage('Build') {
steps { steps {
sh '''npm install sh '''npm install
@@ -40,10 +41,5 @@ npm start & sleep 1'''
sh 'npm test & sleep 1' sh 'npm test & sleep 1'
} }
} }
}
tools {
nodejs 'Node 16.18'
}
} }
} }