added JenkinsFile

This commit is contained in:
2021-11-16 09:39:31 -03:00
parent d063673c77
commit f293e463ab
Vendored
+7 -5
View File
@@ -11,19 +11,21 @@ pipeline {
sh 'sudo apt-get install -y curl '
sh 'curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -'
sh 'sudo apt-get install -y nodejs && sudo apt-get install -y nginx'
//sh 'npm install'
sh 'npm install'
}
}
stage('Test') {
steps {
sh './jenkins/scripts/test.sh'
//sh './jenkins/scripts/test.sh'
sh 'echo Testskipped'
}
}
stage('Deliver') {
steps {
sh './jenkins/scripts/deliver.sh'
input message: 'Finished using the web site? (Click "Proceed" to continue)'
sh './jenkins/scripts/kill.sh'
//sh './jenkins/scripts/deliver.sh'
//input message: 'Finished using the web site? (Click "Proceed" to continue)'
//sh './jenkins/scripts/kill.sh'
sh 'echo Deliverskipped'
}
}
}