Added Jenkinsfile

This commit is contained in:
dandanalaa committed 2022-12-10 18:32:20 +00:00
1 parent f654da8a20
commit 4a9afcc6a7
1 file changed
+3 -10
Vendored
+3 -10
View File
@@ -1,10 +1,5 @@
pipeline {
agent {
node {
label 'npm'
}
}
agent any
stages {
stage('Env reinit') {
steps {
@@ -35,12 +30,10 @@ cat ./.env'''
stage('build') {
steps {
mail(subject: 'Bonjour', body: 'mail envoyer', bcc: 'dandanalaa@hotmail.fr', cc: 'dandanalaa@hotmail.fr', charset: 'UTF-8')
sh '''npm install
npm build'''
}
}
}
environment {
npm = 'install'
}
}