Added Jenkinsfile

This commit is contained in:
dandanalaa committed 2022-12-10 23:47:25 +00:00
1 parent c0754c4800
commit 665813c5ce
1 file changed
+8 -16
Vendored
+8 -16
View File
@@ -1,18 +1,12 @@
pipeline {
tools {nodejs 'Node 16.18'}
agent {
docker {
image 'node:lts-buster-slim'
args '-p 3500:3000'
}
}
environment {
CI = 'true'
}
stages {
stage('Env reinit') {
parallel {
stage('Env reinit') {
steps {
sh '''echo "
@@ -40,15 +34,6 @@ pipeline {
}
}
stage('ssh') {
steps {
sh 'echo "salut"'
}
}
}
}
stage('Build') {
steps {
sh '''npm install
@@ -62,13 +47,20 @@ pipeline {
sh 'npm test & sleep 1'
}
}
stage('Deliver') {
steps {
sh './scripts/deliver.sh'
input message: 'Finished using the web site? (Click "Proceed" to continue)'
input 'Finished using the web site? (Click "Proceed" to continue)'
sh './scripts/kill.sh'
}
}
}
tools {
nodejs 'Node 16.18'
}
environment {
CI = 'true'
}
}