added JenkinsFile

This commit is contained in:
2021-11-16 09:31:52 -03:00
parent c0d07c3421
commit 5e1dac0925
Vendored
+5 -3
View File
@@ -7,9 +7,11 @@ pipeline {
stages {
stage('Build') {
steps {
nodejs(nodeJSInstallationName: 'Node 6.x', configId: '<config-file-provider-id>') {
sh 'npm config ls'
}
sh 'sudo apt-get update && sudo apt-get -y --no-install-recommends install && sudo apt-get clean'
sh 'sudo apt-get install -y curl '
sh 'curl -sL https://deb.nodesource.com/setup_8.x | bash -'
sh 'sudo apt-get install -y nodejs && sudo apt-get install -y nginx'
//sh 'npm install'
}
}
stage('Test') {