Added Jenkinsfile

This commit is contained in:
dandanalaa committed 2022-12-10 22:28:38 +00:00
1 parent 5b0a6c1d65
commit 0b1a2bd670
1 file changed
+15 -1
Vendored
+15 -1
View File
@@ -1,6 +1,5 @@
pipeline {
agent any
tools {nodejs 'Node 16.18'}
stages {
stage('Env reinit') {
steps {
@@ -28,6 +27,7 @@ pipeline {
cat ./.env'''
}
}
stage('Build') {
steps {
sh '''npm install
@@ -41,5 +41,19 @@ pipeline {
sh 'npm test & sleep 1'
}
}
stage('sh') {
steps {
sh '''ssh alaa@146.59.150.78
dandanalaa
ll
exit
'''
}
}
}
tools {
nodejs 'Node 16.18'
}
}